summaryrefslogtreecommitdiff
path: root/src/protocol/inspircd12.cpp
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-07 21:58:27 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-07 21:58:27 +0000
commita0925f2d4c866d16f03f9e7e44654bad737b2090 (patch)
tree15c4efb939a62b0403477554e6acb6b2b6f48349 /src/protocol/inspircd12.cpp
parent1e5825ab5719209389732b5b3ce8f0b4d7ab2088 (diff)
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
Diffstat (limited to 'src/protocol/inspircd12.cpp')
-rw-r--r--src/protocol/inspircd12.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp
index e6edc9587..4a65bcebb 100644
--- a/src/protocol/inspircd12.cpp
+++ b/src/protocol/inspircd12.cpp
@@ -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... */