summaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-09-10 15:46:19 -0400
committerAdam <Adam@anope.org>2010-09-10 15:46:19 -0400
commit9eb7562bee7f2a52cf91b0ab0ebc10351f2a46f2 (patch)
tree1dcc4928486a08643af70f69f094ab44c41642e5 /src/init.cpp
parent46813ccb8c6ab572b8a9ff0a39afb1d92dc4482b (diff)
Fixed bug #1187 - Fixed releasing enforcer clients on TS6 IRCds
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/init.cpp b/src/init.cpp
index c91cc3b31..df74aecab 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -42,19 +42,24 @@ void introduce_user(const Anope::string &user)
}
/* We make the bots go online */
- for (botinfo_map::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it)
+ for (user_map::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end; ++it)
{
- BotInfo *bi = it->second;
+ User *u = it->second;
- if (user.empty() || bi->nick.equals_ci(user))
+ if (user.empty() || u->nick.equals_ci(user))
{
- ircdproto->SendClientIntroduction(bi->nick, bi->GetIdent(), bi->host, bi->realname, ircd->pseudoclient_mode, bi->GetUID());
- XLine x(bi->nick, "Reserved for services");
- ircdproto->SendSQLine(&x);
+ ircdproto->SendClientIntroduction(u, ircd->pseudoclient_mode);
- for (UChannelList::const_iterator cit = bi->chans.begin(), cit_end = bi->chans.end(); cit != cit_end; ++cit)
+ BotInfo *bi = findbot(u->nick);
+ if (bi)
{
- ircdproto->SendJoin(bi, *cit);
+ XLine x(bi->nick, "Reserved for services");
+ ircdproto->SendSQLine(&x);
+
+ for (UChannelList::const_iterator cit = bi->chans.begin(), cit_end = bi->chans.end(); cit != cit_end; ++cit)
+ {
+ ircdproto->SendJoin(bi, *cit);
+ }
}
}
}