1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 18:43:12 +02:00

Add the capability to (properly) send login/logout account messages, used for InspIRCd at present, others are possible in the future (ircu etc). NOTE: This currently doesn't trigger on DROP, which is probably a bad thing.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1944 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rburchell
2009-02-07 21:58:27 +00:00
parent 1e5825ab57
commit a0925f2d4c
5 changed files with 27 additions and 0 deletions
+11
View File
@@ -702,6 +702,17 @@ class InspIRCdProto : public IRCDProto
}
}
void SendAccountLogin(User *u, NickCore *account)
{
send_cmd(TS6SID, "METADATA %s accountname :%s", u->uid, account->display);
}
void SendAccountLogout(User *u, NickCore *account)
{
send_cmd(TS6SID, "METADATA %s accountname :", u->uid);
}
int IsNickValid(const char *nick)
{
/* InspIRCd, like TS6, uses UIDs on collision, so... */