summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-05-22 13:11:58 +0000
committerSebastien Helleu <flashcode@flashtux.org>2007-05-22 13:11:58 +0000
commit5332d2ba278e24eb7a388a241fc73e0fea5c87af (patch)
tree89d646e46308913e6edec8ddaf4c4ae7e2d3849c /src
parent058c026e10f784f83639bd48a67aa2e519937551 (diff)
downloadweechat-5332d2ba278e24eb7a388a241fc73e0fea5c87af.zip
Removed ":" for unknown IRC commands before arguments (bug #19929)
Diffstat (limited to 'src')
-rw-r--r--src/common/command.c4
1 files changed, 2 insertions, 2 deletions
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);