mirror of
https://github.com/anope/anope.git
synced 2026-07-06 23:43:14 +02:00
Reintroduce sending login/logout account messages, they were added back in SVN r1944 but went poof with the command API change.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2247 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -87,6 +87,7 @@ class CommandNSIdentify : public Command
|
||||
else
|
||||
common_svsmode(u, modes, "");
|
||||
}
|
||||
ircdproto->SendAccountLogin(u, u->nc);
|
||||
send_event(EVENT_NICK_IDENTIFY, 1, u->nick);
|
||||
alog("%s: %s!%s@%s identified for nick %s", s_NickServ, u->nick, u->GetIdent().c_str(), u->host, u->nick);
|
||||
notice_lang(s_NickServ, u, NICK_IDENTIFY_SUCCEEDED);
|
||||
|
||||
@@ -76,6 +76,8 @@ class CommandNSLogout : public Command
|
||||
if (u->nc->flags & NI_KILLPROTECT)
|
||||
del_ns_timeout(na, TO_COLLIDE);
|
||||
|
||||
ircdproto->SendAccountLogout(u2, u2->nc);
|
||||
|
||||
u2->nc = NULL;
|
||||
|
||||
/* Send out an event */
|
||||
|
||||
@@ -85,6 +85,8 @@ class CommandNSConfirm : public Command
|
||||
notice_lang(s_NickServ, u, NICK_REGISTERED, u->nick, na->nc->GetAccess(0).c_str());
|
||||
else
|
||||
notice_lang(s_NickServ, u, NICK_REGISTERED_NO_MASK, u->nick);
|
||||
|
||||
ircdproto->SendAccountLogin(u, u->nc);
|
||||
send_event(EVENT_NICK_REGISTERED, 1, u->nick);
|
||||
|
||||
if (enc_decrypt(na->nc->pass, tmp_pass, PASSMAX - 1) == 1)
|
||||
|
||||
Reference in New Issue
Block a user