+ CLIENT *target = Client_Search(nick);
+
+ if (!target)
+ return IRC_WriteStrClient(from, ERR_NOSUCHNICK_MSG, Client_ID(from), nick);
+
+ Channel_Kick(peer, target, from, channel, reason);
+ return true;
+}
+
+/* Global functions */
+
+/**
+ * Handler for the IRC command "KICK".
+ *
+ * @param Client The client from which this command has been received.
+ * @param Req Request structure with prefix and all parameters.
+ * @return CONNECTED or DISCONNECTED.
+ */
+GLOBAL bool
+IRC_KICK(CLIENT *Client, REQUEST *Req)
+{
+ CLIENT *from;
+ char *itemList = Req->argv[0];
+ const char* currentNick, *currentChannel, *reason;
+ unsigned int channelCount = 1;
+ unsigned int nickCount = 1;
+