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/bahamut.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/bahamut.c')
-rw-r--r-- | src/protocol/bahamut.c | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index 7e41af3db..102dde806 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -471,21 +471,11 @@ CUMode myCumodes[128] = { -void bahamut_cmd_mode(const char *source, const char *dest, const char *buf) +void BahamutIRCdProto::cmd_mode(const char *source, const char *dest, const char *buf) { - if (!buf) { - return; - } - - if (ircdcap->tsmode) { - if (uplink_capab & ircdcap->tsmode) { - send_cmd(source, "MODE %s 0 %s", dest, buf); - } else { - send_cmd(source, "MODE %s %s", dest, buf); - } - } else { - send_cmd(source, "MODE %s %s", dest, buf); - } + if (!buf) return; + if (ircdcap->tsmode && (uplink_capab & ircdcap->tsmode)) send_cmd(source, "MODE %s 0 %s", dest, buf); + else send_cmd(source, "MODE %s %s", dest, buf); } /* SVSHOLD - set */ @@ -1542,7 +1532,6 @@ void moduleAddAnopeCmds() pmodule_cmd_372_error(bahamut_cmd_372_error); pmodule_cmd_375(bahamut_cmd_375); pmodule_cmd_376(bahamut_cmd_376); - pmodule_cmd_mode(bahamut_cmd_mode); pmodule_cmd_bot_nick(bahamut_cmd_bot_nick); pmodule_cmd_kick(bahamut_cmd_kick); pmodule_cmd_notice_ops(bahamut_cmd_notice_ops); |