summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-03 06:53:40 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-03 06:53:40 +0000
commit821c6ac90b77fe9c4ffec3269a54461822673dba (patch)
tree3290b8c5870fecdc71b0dca1e3c0e49284f15c98
parentaab6dad14f13e97acdc3b41051d93b9e6c037dc1 (diff)
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
-rw-r--r--src/core/ns_identify.c1
-rw-r--r--src/core/ns_logout.c2
-rw-r--r--src/core/ns_register.c2
3 files changed, 5 insertions, 0 deletions
diff --git a/src/core/ns_identify.c b/src/core/ns_identify.c
index 153d72fbf..d09be6a03 100644
--- a/src/core/ns_identify.c
+++ b/src/core/ns_identify.c
@@ -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);
diff --git a/src/core/ns_logout.c b/src/core/ns_logout.c
index 4a6be4eef..b9be711cc 100644
--- a/src/core/ns_logout.c
+++ b/src/core/ns_logout.c
@@ -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 */
diff --git a/src/core/ns_register.c b/src/core/ns_register.c
index 3048b96c7..203808ba9 100644
--- a/src/core/ns_register.c
+++ b/src/core/ns_register.c
@@ -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)