degesch: fix sending the reason in /kick
This commit is contained in:
parent
4ef6f6ec2d
commit
5a3b8f8eee
|
@ -6379,8 +6379,13 @@ handle_command_kick (struct app_context *ctx, char *arguments)
|
||||||
"%s: %s", "Can't kick",
|
"%s: %s", "Can't kick",
|
||||||
"no channel name given and this buffer is not a channel");
|
"no channel name given and this buffer is not a channel");
|
||||||
else if (*arguments)
|
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
|
else
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue