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/bots.cpp | |
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/bots.cpp')
-rw-r--r-- | src/bots.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index a6ef20e37..c8afd91fd 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -36,6 +36,11 @@ BotInfo::BotInfo(const char *nnick) this->flags |= BI_NICKSERV; else if (s_GlobalNoticer && !stricmp(s_GlobalNoticer, nnick)) this->flags |= BI_GLOBAL; + + // If we're synchronised with the uplink already, call introduce_user() for this bot. + alog("serv_uplink is %p and status is %d", serv_uplink, serv_uplink ? serv_uplink->sync == SSYNC_DONE : 0); + if (serv_uplink && serv_uplink->sync == SSYNC_DONE) + ircdproto->SendClientIntroduction(this->nick, this->user, this->host, this->real, ircd->pseudoclient_mode, this->uid.c_str()); } BotInfo::BotInfo(const char *nnick, const char *nuser, const char *nhost, const char *nreal) @@ -65,6 +70,11 @@ BotInfo::BotInfo(const char *nnick, const char *nuser, const char *nhost, const this->flags |= BI_NICKSERV; else if (s_GlobalNoticer && !stricmp(s_GlobalNoticer, nnick)) this->flags |= BI_GLOBAL; + + // If we're synchronised with the uplink already, call introduce_user() for this bot. + alog("serv_uplink is %p and status is %d", serv_uplink, serv_uplink ? serv_uplink->sync == SSYNC_DONE : 0); + if (serv_uplink && serv_uplink->sync == SSYNC_DONE) + ircdproto->SendClientIntroduction(this->nick, this->user, this->host, this->real, ircd->pseudoclient_mode, this->uid.c_str()); } BotInfo::~BotInfo() |