Spam command, by Radiac Staff command, use to punish spammy residents ====================================== Installation instructions: ====================================== Modify src/admin.c: ====================================== => Add the following subroutine to the end of the file: /* Spam command, to reprimand player - by Radiac */ void spam(player * p, char *str) { player *p2; CHECK_DUTY(p); if (!*str) { tell_player(p, "Format: spam \n"); return; } p2 = find_player_global(str); if (!p2) { return; } if (!check_privs(p->residency, p2->residency)) { TELLPLAYER(p, "You can't spam %s; they're higher up the food chain", p2->name); TELLPLAYER(p2, " ^Y-=> %s tried to spam you!", p->name); return; } TELLPLAYER(p2, spam_msg.where); TELLPLAYER(p2, "%s tells you to stop spamming!\n", p->name); SUWALL (" -=> %s spams %s\n", p->name, p2->name); LOGF("spam", "%s spammed %s", p->name, p2->name); } ====================================== Modify src/glue.c ====================================== => Around line 102 you'll see the following section: /* formally handled in plists.c */ file motd_msg, connect_msg, newban_msg, banned_msg, nonewbies_msg, newbie_msg, newpage1_msg, newpage2_msg, disclaimer_msg, splat_msg, sumotd_msg, version_msg, hitells_msg, fingerpaint_msg, connect2_msg, connect3_msg, noressies_msg, quit_msg, nuke_msg, spam_msg, sneeze_msg, rude_msg; => Add 'spam_msg, ' to this section as seen above (position doesnt matter) ====================================== => Then add to MessageFileArray[] the following: { &spam_msg, "files/spam.msg", 0 } , ====================================== Modify include/clist.h ====================================== => Add to 'extern command_func' (line 18): , spam => (ie the last line of that could read 'library_examine, block_room_descriptions, edfirst, spam;') ====================================== Modify include/proto.h ====================================== => Add to 'extern file' (around line 560) , spam_msg => (ie the last line of that reads 'noressies_msg, hitells_msg, sumotd_msg, spam_msg, fingerpaint_msg;') ====================================== Create files/spam.msg and customise to your tastes ====================================== Then 'make quick' and reboot your talker ======================================