diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-03 21:16:33 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-03 21:16:33 +0000 |
commit | 2dba060c6a8a290921441ada1586ab43157be893 (patch) | |
tree | 991892fd67573b3d65cccd8cd8305a5269191443 /src/protocol/ratbox.c | |
parent | a7316c17706bccf75ec1150ee3b318410acffbed (diff) |
Patch from DukePyrolator to include an OnUserNickChange() event to replace EVENT_CHANGE_NICK, also patch from me to have the ratbox protocol module send account data on login and logout.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2254 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 4829377d9..d87d0b64e 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -663,6 +663,16 @@ class RatboxProto : public IRCDTS6Proto send_cmd(source->uid, "INVITE %s %s", u ? u->GetUID().c_str(): nick, chan); } + void SendAccountLogin(User *u, NickCore *account) + { + send_cmd(TS6SID, "ENCAP * SU %s %s", u->GetUID().c_str(), account->display); + } + + void SendAccountLogout(User *u, NickCore *account) + { + send_cmd(TS6SID, "ENCAP * SU %s", u->GetUID().c_str()); + } + int IsNickValid(const char *nick) { /* TS6 Save extension -Certus */ |