added recover command to recover zombies from user side
[ircu2.10.12-pk.git] / ircd / m_quit.c
index 16376e42a4406b33988dc96d649ae2577bf54a72..20b8224145f2bff5a9a8224a1ddd60eed8df33a1 100644 (file)
@@ -105,6 +105,11 @@ int m_quit(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   assert(0 != sptr);
   assert(cptr == sptr);
 
+  if (!irc_strcmp(parv[parc - 1], "ZOMBIE")) {
+    zombie_client(&me, &me, sptr);
+    return 0;
+  }
+
   if (cli_user(sptr)) {
     struct Membership* chan;
     for (chan = cli_user(sptr)->channel; chan; chan = chan->next_channel) {