diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:12 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:12 +0000 |
commit | 10fc9efa4da5124f183fd023c623d1e573e1a51d (patch) | |
tree | 3f126be657906b6974ae88d6686776868d8820ff /src/protocol/bahamut.c | |
parent | 78ef810376f47aa52f51a92749110b31b363c036 (diff) |
Added cmd_svsmode_chan() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1257 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/bahamut.c')
-rw-r--r-- | src/protocol/bahamut.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index 08dd5e74e..4394877ac 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -494,19 +494,16 @@ void BahamutIRCdProto::cmd_release_svshold(const char *nick) /* SVSMODE -b */ void BahamutIRCdProto::cmd_unban(const char *name, const char *nick) { - bahamut_cmd_svsmode_chan(name, "-b", nick); + cmd_svsmode_chan(name, "-b", nick); } /* SVSMODE channel modes */ -void bahamut_cmd_svsmode_chan(const char *name, const char *mode, const char *nick) +void BahamutIRCdProto::cmd_svsmode_chan(const char *name, const char *mode, const char *nick) { - if (nick) { - send_cmd(ServerName, "SVSMODE %s %s %s", name, mode, nick); - } else { - send_cmd(ServerName, "SVSMODE %s %s", name, mode); - } + if (nick) send_cmd(ServerName, "SVSMODE %s %s %s", name, mode, nick); + else send_cmd(ServerName, "SVSMODE %s %s", name, mode); } void BahamutIRCdProto::cmd_bot_chan_mode(const char *nick, const char *chan) @@ -1395,7 +1392,6 @@ void moduleAddAnopeCmds() pmodule_cmd_242(bahamut_cmd_242); pmodule_cmd_243(bahamut_cmd_243); pmodule_cmd_211(bahamut_cmd_211); - pmodule_cmd_svsmode_chan(bahamut_cmd_svsmode_chan); pmodule_cmd_svid_umode(bahamut_cmd_svid_umode); pmodule_cmd_nc_change(bahamut_cmd_nc_change); pmodule_cmd_svid_umode2(bahamut_cmd_svid_umode2); |