From 619a68171055ca6ec460557176bd59817c09b736 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 22 May 2006 00:51:54 +0200 Subject: Fixed a bug that caused root_command_string() to sometimes not notice \0. --- root_commands.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'root_commands.c') 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] ) ) ) { -- cgit v1.2.3