email.c

skylib_fluffos_v3/mudlib/cmds/player/email.c · 621 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

#include <player.h>
inherit COMMAND_BASE;

int cmd(string str) {
   string email;

  email = TP->query_email();
   
   if (!str) {
      write("Your current email address is "+email+"\n");
      write("To clear use \"email CLEAR\"\n");
      write("For the email address to be only visible by lords prepend a :\n");
      write("eg email :frog@frogcentral.froguni.swamp\n");
      return 1;
   }
   if (str == "CLEAR")
      email = "";
   else
      email = str;
   if (email != "")
      write("Email address set to "+str+".\n");
   else
      write("Email address is null.\n");
   TP->set_email(email);
   return 1;
}

Site Stats

Snippets: 1791
Codebases: 571