]> jfr.im git - irc/quakenet/newserv.git/blobdiff - patrol/patrol_commands.c
Merge chanserv-live into default.
[irc/quakenet/newserv.git] / patrol / patrol_commands.c
index 008c86b42d3d1a65ef214c1e2e8b0927373cabbd..d4cd6a5f80f3abb1b08f3cff29c6d8f9aa11e66e 100644 (file)
@@ -17,7 +17,16 @@ typedef struct patrolchannel {
 static patrolchannel *patrolchannels;
 
 static void patroluserhandler(nick *np, int event, void **args) {
-  /* Nothing to do here. */
+  patrolchannel *pc;
+
+  if (event == LU_KILLED) {
+    for (pc = patrolchannels; pc; pc = pc->next) {
+      if (pc->nick == np) {
+        pc->nick = NULL;
+        break;
+      }
+    }
+  }
 }
 
 static void pc_check(void) {