aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sircbot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sircbot.c b/sircbot.c
index 81d2deb..fdb9b8c 100644
--- a/sircbot.c
+++ b/sircbot.c
@@ -206,6 +206,9 @@ int handle_response(struct irc_session *sess, char *user, char *cmd, char *data,
} else if (strncmp(cmd, "JOIN", 4) == 0) {
return join_channel(chan, numchan, data);
} else if (strncmp(cmd, "KICK", 4) == 0) {
+ char *p = strchr(data, ' ');
+ if (p)
+ *p = '\0';
return kick_channel(chan, numchan, data);
} else if (strncmp(cmd, "PRIVMSG", 7) == 0) {
char *p = strchr(data, ' ');