From 4efba4dad4b21f8ae2357a473b335e147b83a7c7 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 7 Apr 2005 19:30:12 +0000 Subject: Fixed issue where failing modules would bail by calling exit (deprecated) -- modules should now just disable their functionality if they are missing data git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1007 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_globops.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_globops.cpp') diff --git a/src/modules/m_globops.cpp b/src/modules/m_globops.cpp index 378f6e5ce..1e37e1fb9 100644 --- a/src/modules/m_globops.cpp +++ b/src/modules/m_globops.cpp @@ -48,9 +48,9 @@ class ModuleGlobops : public Module { Srv->Log(DEFAULT,"*** m_globops: ERROR, failed to allocate user mode +g!"); printf("Could not claim usermode +g for this module!"); - exit(0); + return; } - Srv->AddCommand("GLOBOPS",handle_globops,'o',1,"m_globops.so"); + else Srv->AddCommand("GLOBOPS",handle_globops,'o',1,"m_globops.so"); } virtual ~ModuleGlobops() -- cgit v1.3.1-10-gc9f91