summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/common/command.c4
-rw-r--r--weechat/ChangeLog1
-rw-r--r--weechat/src/common/command.c4
4 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ef801cd3..c606632ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@ ChangeLog - 2007-05-22
Version 0.2.5 (under dev!):
+ * removed ":" for unknown IRC commands before arguments (bug #19929)
* fixed bug with "/buffer query_name", added server and channel completion
for /buffer command (bug #19928)
* added cmake for weechat compile (patch #5943)
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);
diff --git a/weechat/ChangeLog b/weechat/ChangeLog
index 6ef801cd3..c606632ea 100644
--- a/weechat/ChangeLog
+++ b/weechat/ChangeLog
@@ -5,6 +5,7 @@ ChangeLog - 2007-05-22
Version 0.2.5 (under dev!):
+ * removed ":" for unknown IRC commands before arguments (bug #19929)
* fixed bug with "/buffer query_name", added server and channel completion
for /buffer command (bug #19928)
* added cmake for weechat compile (patch #5943)
diff --git a/weechat/src/common/command.c b/weechat/src/common/command.c
index 3fffaa261..5b6606cc8 100644
--- a/weechat/src/common/command.c
+++ b/weechat/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);