aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-05-22 00:51:54 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-05-22 00:51:54 +0200
commit619a68171055ca6ec460557176bd59817c09b736 (patch)
treee1cd53cac8531a55f42054c169cd369a6092a2c9
parentf66c701e85ed9febdd065d0fd5808be3e8af6811 (diff)
Fixed a bug that caused root_command_string() to sometimes not notice \0.
-rw-r--r--root_commands.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/root_commands.c b/root_commands.c
index 6d9868ac..24423958 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -56,6 +56,10 @@ void root_command_string( irc_t *irc, user_t *u, char *command, int flags )
cmd[k++] = s;
s --;
}
+ else
+ {
+ break;
+ }
}
else if( *s == '\\' && ( ( !q && s[1] ) || ( q && q == s[1] ) ) )
{