src/irc.c
changeset 19 66114d944208
parent 18 4435146391ae
child 22 b786b5f92a93
--- a/src/irc.c
+++ b/src/irc.c
@@ -32,6 +32,7 @@
 #define PRIVMSG  9
 #define    QUIT 10
 #define    NICK 11
+#define    KICK 12
 
 #define VERSION_STRING "MCBOT on GNU/LINUX"
 
@@ -39,7 +40,7 @@
     "NOTICE", "MODE", "JOIN", "PART",
     "TOPIC", "PING", "ENOMEM", "ERROR",
     "VERSION", "PRIVMSG", "QUIT", "NICK",
-    NULL
+    "KICK", NULL
 };
 
 FILE *irc_connect (char *server, unsigned int port)
@@ -275,6 +276,9 @@
                 case NICK:
                     message->channel = message->user;
                     return command;
+                case KICK:
+                    message->channel = message->user;
+                    return command;
                 }
             }
             i++;