mirror of
https://github.com/anope/anope.git
synced 2026-07-09 02:43:13 +02:00
Fix issue with ss_main where it doesn't recreate StatServ when it's unloaded and loaded at run-time.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1820 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+8
-3
@@ -26,13 +26,18 @@ class SSMain : public Module
|
||||
SSMain(const std::string &modname, const std::string &creator) : Module(modname, creator)
|
||||
{
|
||||
Command *c;
|
||||
EvtHook *hook;
|
||||
|
||||
c = createCommand("HELP", do_help, NULL, -1, -1, -1, -1, -1);
|
||||
this->AddCommand(cmdTable, c, MOD_HEAD);
|
||||
|
||||
hook = createEventHook(EVENT_SERVER_CONNECT, statserv_create);
|
||||
this->AddEventHook(hook);
|
||||
if (servsock == -1) {
|
||||
EvtHook *hook;
|
||||
|
||||
hook = createEventHook(EVENT_SERVER_CONNECT, statserv_create);
|
||||
this->AddEventHook(hook);
|
||||
}
|
||||
else
|
||||
statserv_create(0, NULL);
|
||||
}
|
||||
~SSMain()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user