[mw-devel] [Git][arthur/mw][master] Replace the tell command with sayto, which works outside talker anyway,

Justin Mitchell arthur at sucs.org
Tue Jan 12 15:28:18 GMT 2016


Justin Mitchell pushed to branch master at Justin Mitchell / mw


Commits:
151cdc31 by Justin Mitchell at 2016-01-12T15:27:11Z
Replace the tell command with sayto, which works outside talker anyway,
this removes the anachronistic single-user wiz command and fixes #8

- - - - -


2 changed files:

- src/client/command.c
- src/client/newmain.c


Changes:

=====================================
src/client/command.c
=====================================
--- a/src/client/command.c
+++ b/src/client/command.c
@@ -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},


=====================================
src/client/newmain.c
=====================================
--- a/src/client/newmain.c
+++ b/src/client/newmain.c
@@ -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];



View it on GitLab: https://projects.sucs.org/arthur/mw/commit/151cdc3151221fbfb0992044a1e66746896025a1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20160112/93c63bc5/attachment.html>


More information about the mw-devel mailing list