From 8365610bb2013d3478214511910daceabd29ad09 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 30 Jan 2006 17:07:07 +0100 Subject: Added a little warning message when people use a wrong set-command syntax. --- root_commands.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'root_commands.c') diff --git a/root_commands.c b/root_commands.c index 426cf6e8..f69442d3 100644 --- a/root_commands.c +++ b/root_commands.c @@ -600,6 +600,9 @@ static void cmd_set( irc_t *irc, char **cmd ) if( cmd[1] && cmd[2] ) { set_setstr( irc, cmd[1], cmd[2] ); + + if( ( strcmp( cmd[2], "=" ) ) == 0 && cmd[3] ) + irc_usermsg( irc, "Warning: Correct syntax: \002set \002 (without =)" ); } if( cmd[1] ) /* else 'forgotten' on purpose.. Must show new value after changing */ { -- cgit v1.2.3