summaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/init.cpp b/src/init.cpp
index c2c44ec16..cd53129a8 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -47,15 +47,18 @@ void introduce_user(const Anope::string &user)
User *u = finduser(user);
if (u)
{
- ircdproto->SendClientIntroduction(u);
-
BotInfo *bi = findbot(u->nick);
if (bi)
{
- bi->introduced = true;
-
XLine x(bi->nick, "Reserved for services");
ircdproto->SendSQLine(NULL, &x);
+ }
+
+ ircdproto->SendClientIntroduction(u);
+
+ if (bi)
+ {
+ bi->introduced = true;
for (UChannelList::const_iterator cit = bi->chans.begin(), cit_end = bi->chans.end(); cit != cit_end; ++cit)
ircdproto->SendJoin(bi, (*cit)->chan, &Config->BotModeList);