Removed ":" for unknown IRC commands before arguments (bug #19929)

This commit is contained in:
Sebastien Helleu 2007-05-22 13:11:58 +00:00
parent 058c026e10
commit 5332d2ba27
4 changed files with 6 additions and 4 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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)

View File

@ -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);