summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-06-18 08:40:44 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-06-18 08:40:44 +0200
commit5a3b8f8eeea1058c09bfd9fc1ba27db53669fce2 (patch)
treef7d0cefd8c4ba5b883c88cbc17e4d5c0a344706e /degesch.c
parent4ef6f6ec2dd004a9bb594c185c4c91664665559f (diff)
downloadxK-5a3b8f8eeea1058c09bfd9fc1ba27db53669fce2.tar.gz
xK-5a3b8f8eeea1058c09bfd9fc1ba27db53669fce2.tar.xz
xK-5a3b8f8eeea1058c09bfd9fc1ba27db53669fce2.zip
degesch: fix sending the reason in /kick
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/degesch.c b/degesch.c
index 6dd1454..5ead3a4 100644
--- a/degesch.c
+++ b/degesch.c
@@ -6379,8 +6379,13 @@ handle_command_kick (struct app_context *ctx, char *arguments)
"%s: %s", "Can't kick",
"no channel name given and this buffer is not a channel");
else if (*arguments)
- // FIXME: the reason should be one argument
- irc_send (s, "KICK %s %s", channel_name, arguments);
+ {
+ char *target = cut_word (&arguments);
+ if (*arguments)
+ irc_send (s, "KICK %s %s :%s", channel_name, target, arguments);
+ else
+ irc_send (s, "KICK %s %s", channel_name, target);
+ }
else
return false;
return true;