From 284af258bf3c4dc7f409722d66bb0ac59e01e37d Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 27 Apr 2011 10:56:20 -0400 Subject: Added more useful functions to our LDAP API, allow adding newly registered accounts to LDAP, removed some unnecessary OnPre events and fixed unloading all modules --- modules/extra/cs_set_misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/extra/cs_set_misc.cpp') diff --git a/modules/extra/cs_set_misc.cpp b/modules/extra/cs_set_misc.cpp index 4bd7a772a..f71363795 100644 --- a/modules/extra/cs_set_misc.cpp +++ b/modules/extra/cs_set_misc.cpp @@ -75,7 +75,7 @@ class CSSetMisc : public Module void RemoveAll() { - if (Commands.empty()) + if (!chanserv || Commands.empty()) return; Command *set = FindCommand(chanserv->Bot(), "SET"); -- cgit