Commit 151cdc31 authored by Justin Mitchell's avatar Justin Mitchell
Browse files

Replace the tell command with sayto, which works outside talker anyway,

this removes the anachronistic single-user wiz command and fixes #8
parent 2963fb70
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ CommandList table[]={
{"status",     0x000, 0, "Usage: status", "Display user status", c_status, 1},
{"su",         0x004, 1, "Usage: su <on | off>", "Toggle superuser powers", c_su, 1},
{"talker",     0x020, 0, "Usage: talker", "Enter chat mode", c_chatmode, 1},
{"tell",       0x020, 2, "Usage: tell <user> <message>", "Send message to user", c_tell, 1},
{"tell",       0x020, 2, "Usage: tell <user> <message>", "Send message to user", t_sayto, 1},
{"tidyup",     0x001, 2, "Usage: tidyup <foldername> <mesg no>", "Remove messages from a folder upto message number", c_tidyup, 1},
{"timeout",    0x040, 1, "Usage: timeout <time>", "Set your idle time logout", c_timeout, 1},
{"timestamp",  0x000, 1, "Usage: timestamp <on | off>", "Print timestamps on messages", c_timestamp, 1},
+0 −15
Original line number Diff line number Diff line
@@ -481,21 +481,6 @@ void c_who(CommandList *cm, int argc, const char **argv, char *args)
	display_wholist(0);
}

void c_tell(CommandList *cm, int argc, const char **argv, char *args)
{
	if (s_coventry(user))
		printf(_("You have been sent to 'coventry' you are not allowed to talk to anyone..\n"));
	else
	{
		char text[MAXTEXTLENGTH];

		update_user(user);
		text[0]=0;
		strncat(text, args, MAXTEXTLENGTH - strlen(text) - 1);
		send_mesg(user->record.name, argv[1], text, u_god(user));
	}
}

void c_wiz(CommandList *cm, int argc, const char **argv, char *args)
{
	char text[MAXTEXTLENGTH];