| I noticed that there's a 'homepage' command, which you can use to set your homepage, but there isn't an 'email' command, where you can set your email. Therefore, I decided to create one. I found all references to the homepage command (i.e. function calls\declarations, variable declarations, etc) and copied them, replacing the word 'homepage' with the word 'email'. I then created the 'do_email' function, which was literally a copy-and-paste of the 'do_homepage' function, except I once again changed 'homepage' to 'email'; i.e. 'ch->pcdata->homepage' to 'ch->pcdata->email' and so-on. I then did the same thing in the 'commands.dat' file. After that, I deleted all the object files, and recompiled the server. There were no compile errors, and no run-time errors that I could find. When I type 'commands', the email command is listed among them. However, whenever I type 'email', the mud returns 'Huh?'. I cannot figure out why this is. Is there something I missed? I did remember to update mud.h as well. What else should I do to get it to perform the email command? |