diff options
author | Adam <Adam@anope.org> | 2010-09-10 15:46:19 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-09-10 15:46:19 -0400 |
commit | 9eb7562bee7f2a52cf91b0ab0ebc10351f2a46f2 (patch) | |
tree | 1dcc4928486a08643af70f69f094ab44c41642e5 /modules/protocol/ratbox.cpp | |
parent | 46813ccb8c6ab572b8a9ff0a39afb1d92dc4482b (diff) |
Fixed bug #1187 - Fixed releasing enforcer clients on TS6 IRCds
Diffstat (limited to 'modules/protocol/ratbox.cpp')
-rw-r--r-- | modules/protocol/ratbox.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp index d43a80b52..2aa528f49 100644 --- a/modules/protocol/ratbox.cpp +++ b/modules/protocol/ratbox.cpp @@ -175,10 +175,10 @@ class RatboxProto : public IRCDProto ratbox_cmd_svinfo(); } - void SendClientIntroduction(const Anope::string &nick, const Anope::string &user, const Anope::string &host, const Anope::string &real, const Anope::string &modes, const Anope::string &uid) + void SendClientIntroduction(const User *u, const Anope::string &modes) { - EnforceQlinedNick(nick, ""); - send_cmd(TS6SID, "UID %s 1 %ld %s %s %s 0 %s :%s", nick.c_str(), static_cast<long>(time(NULL)), modes.c_str(), user.c_str(), host.c_str(), uid.c_str(), real.c_str()); + EnforceQlinedNick(u->nick, ""); + send_cmd(TS6SID, "UID %s 1 %ld %s %s %s 0 %s :%s", u->nick.c_str(), u->timestamp, modes.c_str(), u->GetIdent().c_str(), u->host.c_str(), u->GetUID().c_str(), u->realname.c_str()); } void SendPartInternal(const BotInfo *bi, const Channel *chan, const Anope::string &buf) @@ -223,15 +223,6 @@ class RatboxProto : public IRCDProto send_cmd("", "NOTICE @%s :%s", dest->name.c_str(), buf.c_str()); } - /* QUIT */ - void SendQuitInternal(BotInfo *bi, const Anope::string &buf) - { - if (!buf.empty()) - send_cmd(bi->GetUID(), "QUIT :%s", buf.c_str()); - else - send_cmd(bi->GetUID(), "QUIT"); - } - /* INVITE */ void SendInvite(BotInfo *source, const Anope::string &chan, const Anope::string &nick) { |