From 098157dca8a4aecc18294cbc31cbe5ee95b35a94 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 3 Jan 2013 11:41:32 -0500 Subject: Don't delete users immediately when quit or killed, instead wait until message processing is done --- modules/commands/os_dns.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/commands/os_dns.cpp') diff --git a/modules/commands/os_dns.cpp b/modules/commands/os_dns.cpp index ab8e412be..606af2d52 100644 --- a/modules/commands/os_dns.cpp +++ b/modules/commands/os_dns.cpp @@ -719,9 +719,9 @@ class ModuleDNS : public Module } } - void OnUserConnect(Reference &u, bool &exempt) anope_override + void OnUserConnect(User *u, bool &exempt) anope_override { - if (u && u->server) + if (!u->Quitting() && u->server) { DNSServer *s = DNSServer::Find(u->server->GetName()); /* Check for user limit reached */ -- cgit