diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
commit | 00466f884cca8975972d0802999288da2c0b9fdf (patch) | |
tree | bc6a5351dc09820330d6b3429b654bf9377f06b7 /src/protocol/ratbox.c | |
parent | 7a167d97af6ef7e97c05488ae37c8f482173adb9 (diff) |
Added cmd_mode() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1218 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 5d2983518..b4a9c4b9a 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -1253,20 +1253,14 @@ void ratbox_cmd_211(const char *buf) send_cmd(NULL, "211 %s", buf); } -void ratbox_cmd_mode(const char *source, const char *dest, const char *buf) +void RatboxProto::cmd_mode(const char *source, const char *dest, const char *buf) { - Uid *ud; - if (!buf) { - return; - } - - if (source) { - ud = find_uid(source); - send_cmd((UseTS6 ? (ud ? ud->uid : source) : source), "MODE %s %s", - dest, buf); - } else { - send_cmd(source, "MODE %s %s", dest, buf); - } + if (!buf) return; + if (source) { + Uid *ud = find_uid(source); + send_cmd(UseTS6 ? (ud ? ud->uid : source) : source, "MODE %s %s", dest, buf); + } + else send_cmd(source, "MODE %s %s", dest, buf); } void ratbox_cmd_tmode(const char *source, const char *dest, const char *fmt, ...) @@ -1694,7 +1688,6 @@ void moduleAddAnopeCmds() pmodule_cmd_372_error(ratbox_cmd_372_error); pmodule_cmd_375(ratbox_cmd_375); pmodule_cmd_376(ratbox_cmd_376); - pmodule_cmd_mode(ratbox_cmd_mode); pmodule_cmd_bot_nick(ratbox_cmd_bot_nick); pmodule_cmd_kick(ratbox_cmd_kick); pmodule_cmd_notice_ops(ratbox_cmd_notice_ops); |