From 5332d2ba278e24eb7a388a241fc73e0fea5c87af Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 22 May 2007 13:11:58 +0000 Subject: Removed ":" for unknown IRC commands before arguments (bug #19929) --- src/common/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/common/command.c b/src/common/command.c index 3fffaa261..5b6606cc8 100644 --- a/src/common/command.c +++ b/src/common/command.c @@ -667,7 +667,7 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string if (cfg_irc_send_unknown_commands) { if (ptr_args) - unknown_command = (char *)malloc (strlen (command + 1) + 2 + strlen (ptr_args) + 1); + unknown_command = (char *)malloc (strlen (command + 1) + 1 + strlen (ptr_args) + 1); else unknown_command = (char *)malloc (strlen (command + 1) + 1); @@ -676,7 +676,7 @@ exec_weechat_command (t_irc_server *server, t_irc_channel *channel, char *string strcpy (unknown_command, command + 1); if (ptr_args) { - strcat (unknown_command, " :"); + strcat (unknown_command, " "); strcat (unknown_command, ptr_args); } irc_send_cmd_quote (server, channel, unknown_command); -- cgit v1.2.3