summaryrefslogtreecommitdiff
path: root/modules/protocol/inspircd-ts6.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-26 10:46:19 -0400
committerAdam <Adam@anope.org>2012-10-26 10:46:19 -0400
commit8fd3fc7c13650b9f34c78ed0590b3bd7a7cd10b1 (patch)
tree7b6cf4ed7052edb35b30dbb99c8a2f81081884ff /modules/protocol/inspircd-ts6.h
parent8d27b25bf861072c35f534189b05a7a3811ee8f7 (diff)
Add sasl support to unreal, inspircd
Diffstat (limited to 'modules/protocol/inspircd-ts6.h')
-rw-r--r--modules/protocol/inspircd-ts6.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/protocol/inspircd-ts6.h b/modules/protocol/inspircd-ts6.h
index b3d3a7a36..fefff1d15 100644
--- a/modules/protocol/inspircd-ts6.h
+++ b/modules/protocol/inspircd-ts6.h
@@ -579,9 +579,16 @@ struct IRCDMessageMetadata : IRCDMessage
{
u->Login(nc);
+ const BotInfo *bi = findbot(Config->NickServ);
const NickAlias *user_na = findnick(u->nick);
if (!Config->NoNicknameOwnership && nickserv && user_na && user_na->nc == nc && user_na->nc->HasFlag(NI_UNCONFIRMED) == false)
- u->SetMode(findbot(Config->NickServ), UMODE_REGISTERED);
+ u->SetMode(bi, UMODE_REGISTERED);
+
+ /* Sometimes a user connects, we send them the usual "this nickname is registered" mess (if
+ * their server isn't syncing) and then we receive this.. so tell them about it.
+ */
+ if (bi)
+ u->SendMessage(bi, _("You have been logged in as \2%s\2."), nc->display.c_str());
}
}