implemented custom KeepConn Time Mode (+K <time>) and relay command for external...
[ircu2.10.12-pk.git] / ircd / m_quit.c
index 9c06b31ccc78d29684a9622f9c2f20ebbff76eba..0aff8f0e83762c18c1e2648c1aaf783e5ca3811f 100644 (file)
@@ -105,7 +105,7 @@ int m_quit(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   assert(0 != sptr);
   assert(cptr == sptr);
 
-  if (!ircd_strcmp(parv[parc - 1], "ZOMBIE")) {
+  if (IsKeepConnEnabled(sptr) || !ircd_strcmp(parv[parc - 1], "ZOMBIE")) {
     zombie_client(&me, &me, sptr);
     return 0;
   }