summaryrefslogtreecommitdiff
path: root/src/irc/irc-send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/irc-send.c')
-rw-r--r--src/irc/irc-send.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/irc/irc-send.c b/src/irc/irc-send.c
index 9cf873106..81890211e 100644
--- a/src/irc/irc-send.c
+++ b/src/irc/irc-send.c
@@ -961,10 +961,22 @@ int
irc_cmd_send_kill (t_irc_server *server, t_irc_channel *channel,
char *arguments)
{
+ char *pos;
+
/* make gcc happy */
(void) channel;
- server_sendf (server, "KILL %s\r\n", arguments);
+ pos = strchr (arguments, ' ');
+ if (pos)
+ {
+ pos[0] = '\0';
+ pos++;
+ while (pos[0] == ' ')
+ pos++;
+ server_sendf (server, "KILL %s :%s\r\n", arguments, pos);
+ }
+ else
+ server_sendf (server, "KILL %s\r\n", arguments);
return 0;
}