diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-03 18:36:10 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-03 18:36:10 +0000 |
commit | a7316c17706bccf75ec1150ee3b318410acffbed (patch) | |
tree | 7d0e745f0b16b557f2c81376cada92ef4d1e6bb0 /src/protocol/ratbox.c | |
parent | a6f0b5e8d42307afc489d46c7c7724b0c0d05b70 (diff) |
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
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 6 |
1 files changed, 2 insertions, 4 deletions
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) |