aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-02-12 20:20:49 +1300
committerJelmer Vernooij <jelmer@samba.org>2006-02-12 20:20:49 +1300
commitec3e4116687f5e990e6d24e2c79e629665ac5e7e (patch)
treeb99eab8a9fcab6125bc37914c10ebcf7a514df7f /root_commands.c
parent9fae35c9cf2d5a319623946705e5d7179ea5c338 (diff)
parent1d2e3c2ee2fb4c12ad25832b93ae9513d042717a (diff)
Merge Wilmer
Diffstat (limited to 'root_commands.c')
-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 */
{