aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-01-30 17:07:07 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2006-01-30 17:07:07 +0100
commit8365610bb2013d3478214511910daceabd29ad09 (patch)
treeac9e35570fded815fe37c19d402c527534e041b1
parent105383688a6605ca40ab4fa987d72809170a2e36 (diff)
Added a little warning message when people use a wrong set-command syntax.
-rw-r--r--root_commands.c3
1 files changed, 3 insertions, 0 deletions
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 <variable> <value>\002 (without =)" );
}
if( cmd[1] ) /* else 'forgotten' on purpose.. Must show new value after changing */
{