summaryrefslogtreecommitdiff
path: root/src/protocol/unreal32.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:12 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:12 +0000
commit10fc9efa4da5124f183fd023c623d1e573e1a51d (patch)
tree3f126be657906b6974ae88d6686776868d8820ff /src/protocol/unreal32.c
parent78ef810376f47aa52f51a92749110b31b363c036 (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/unreal32.c')
-rw-r--r--src/protocol/unreal32.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index f0f34730a..695a6d324 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -1386,21 +1386,16 @@ void UnrealIRCdProto::cmd_sgline(const char *mask, const char *reason)
/* SVSMODE -b */
void UnrealIRCdProto::cmd_unban(const char *name, const char *nick)
{
- unreal_cmd_svsmode_chan(name, "-b", nick);
+ cmd_svsmode_chan(name, "-b", nick);
}
/* SVSMODE channel modes */
-void unreal_cmd_svsmode_chan(const char *name, const char *mode, const char *nick)
+void UnrealIRCdProto::cmd_svsmode_chan(const char *name, const char *mode, const char *nick)
{
- if (nick) {
- send_cmd(ServerName, "%s %s %s %s", send_token("SVSMODE", "n"),
- name, mode, nick);
- } else {
- send_cmd(ServerName, "%s %s %s", send_token("SVSMODE", "n"), name,
- mode);
- }
+ if (nick) send_cmd(ServerName, "%s %s %s %s", send_token("SVSMODE", "n"), name, mode, nick);
+ else send_cmd(ServerName, "%s %s %s", send_token("SVSMODE", "n"), name, mode);
}
@@ -1934,7 +1929,6 @@ void moduleAddAnopeCmds()
pmodule_cmd_242(unreal_cmd_242);
pmodule_cmd_243(unreal_cmd_243);
pmodule_cmd_211(unreal_cmd_211);
- pmodule_cmd_svsmode_chan(unreal_cmd_svsmode_chan);
pmodule_cmd_svid_umode(unreal_cmd_svid_umode);
pmodule_cmd_nc_change(unreal_cmd_nc_change);
pmodule_cmd_svid_umode2(unreal_cmd_svid_umode2);