From a7316c17706bccf75ec1150ee3b318410acffbed Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Fri, 3 Apr 2009 18:36:10 +0000 Subject: Fix ratbox protocol to use TS6SID for sending (UN)RESV, and fix m_privmsg to correctly find the core pseudo-clients if the IRCd sends a UID instead of a nick. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2252 5417fbe8-f217-4b02-8779-1006273d7864 --- src/protocol/ratbox.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/protocol') diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index cb9fc7b62..4829377d9 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -521,8 +521,7 @@ class RatboxProto : public IRCDTS6Proto void SendSQLine(const char *mask, const char *reason) { - BotInfo *bi = findbot(s_OperServ); - send_cmd(bi ? bi->uid : s_OperServ, "RESV * %s :%s", mask, reason); + send_cmd(TS6SID, "RESV * %s :%s", mask, reason); } void SendSGLineDel(const char *mask) @@ -545,8 +544,7 @@ class RatboxProto : public IRCDTS6Proto void SendSQLineDel(const char *user) { - BotInfo *bi = findbot(s_OperServ); - send_cmd(bi ? bi->uid : s_OperServ, "UNRESV * %s", user); + send_cmd(TS6SID, "UNRESV * %s", user); } void SendJoin(BotInfo *user, const char *channel, time_t chantime) -- cgit