From 8fd3fc7c13650b9f34c78ed0590b3bd7a7cd10b1 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 26 Oct 2012 10:46:19 -0400 Subject: Add sasl support to unreal, inspircd --- modules/protocol/inspircd-ts6.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/protocol/inspircd-ts6.h') 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()); } } -- cgit