diff options
| author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-08 16:39:36 +0000 |
|---|---|---|
| committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-08 16:39:36 +0000 |
| commit | 862011a3ee2d8bd8fd8c65750a0c606850061f1a (patch) | |
| tree | 22c4136199581d841fd47b51cd6684118a0617ba /src/core | |
| parent | 4e76d134288ad0c446cfd1d6e0204948c898981e (diff) | |
Actually, make use of it now. Pseudoclients are introduced automatically if synched with uplink.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2442 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/ss_main.c | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/src/core/ss_main.c b/src/core/ss_main.c index 8653c161f..22d2edc1b 100644 --- a/src/core/ss_main.c +++ b/src/core/ss_main.c @@ -17,8 +17,6 @@ BotInfo *statserv = NULL; CommandHash *cmdTable[MAX_CMD_HASH]; -int statserv_create(int argc, char **argv); - class CommandSSHelp : public Command { public: @@ -45,12 +43,14 @@ class SSMain : public Module this->AddCommand(cmdTable, new CommandSSHelp(), MOD_HEAD); - if (servsock == -1) + statserv = findbot("StatServ"); + if (!statserv) { - ModuleManager::Attach(I_OnServerConnect, this); + alog("Creating SS"); + statserv = new BotInfo("StatServ", ServiceUser, ServiceHost, "Stats Service"); } - else - statserv_create(0, NULL); + alog("Done creating SS"); + statserv->cmdTable = cmdTable; } ~SSMain() @@ -71,18 +71,6 @@ class SSMain : public Module delete statserv; } } - - /** This hack is necessary to replace delayed loading, for now */ - void OnServerConnect(Server *) - { - statserv = findbot("StatServ"); - if (!statserv) - { - statserv = new BotInfo("StatServ", ServiceUser, ServiceHost, "Stats Service"); - ircdproto->SendClientIntroduction("StatServ", ServiceUser, ServiceHost, "Stats Service", ircd->pseudoclient_mode, statserv->uid.c_str()); - } - statserv->cmdTable = cmdTable; - } }; MODULE_INIT("ss_main", SSMain) |
