Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / m_kick.c
index 4aed6113a294baf7873357eee5f5198eb08e4b38..86d966c75b3bfcffab84c98c4612d24ca3fef213 100644 (file)
@@ -235,8 +235,9 @@ int ms_kick(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
                          comment);
 
     if (member) { /* and tell the channel about it */
-      sendcmdto_channel_butserv_butone(sptr, CMD_KICK, chptr, NULL, "%H %C :%s", chptr, who,
-                               comment);
+      sendcmdto_channel_butserv_butone(IsServer(sptr) ? &me : sptr, CMD_KICK,
+                                      chptr, NULL, "%H %C :%s", chptr, who,
+                                      comment);
 
       make_zombie(member, who, cptr, sptr, chptr);
     }