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:11 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:11 +0000
commitac05ac3857b8c3ccd8a6ea2444c738c954668ee2 (patch)
tree58a8a2a39609f13b618b2f7fa61cf0d64bce9751 /src/protocol/unreal32.c
parentd3a79969c2bced3f53ff440c40582a858632f900 (diff)
Added cmd_kick() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1220 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r--src/protocol/unreal32.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index e6b434a25..e11b41def 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -616,14 +616,10 @@ void UnrealIRCdProto::cmd_bot_nick(const char *nick, const char *user, const cha
unreal_cmd_sqline(nick, "Reserved for services");
}
-void unreal_cmd_kick(const char *source, const char *chan, const char *user, const char *buf)
+void UnrealIRCdProto::cmd_kick(const char *source, const char *chan, const char *user, const char *buf)
{
- if (buf) {
- send_cmd(source, "%s %s %s :%s", send_token("KICK", "H"), chan,
- user, buf);
- } else {
- send_cmd(source, "%s %s %s", send_token("KICK", "H"), chan, user);
- }
+ if (buf) send_cmd(source, "%s %s %s :%s", send_token("KICK", "H"), chan, user, buf);
+ else send_cmd(source, "%s %s %s", send_token("KICK", "H"), chan, user);
}
void unreal_cmd_notice_ops(const char *source, const char *dest, const char *buf)
@@ -2080,7 +2076,6 @@ void moduleAddAnopeCmds()
pmodule_cmd_372_error(unreal_cmd_372_error);
pmodule_cmd_375(unreal_cmd_375);
pmodule_cmd_376(unreal_cmd_376);
- pmodule_cmd_kick(unreal_cmd_kick);
pmodule_cmd_notice_ops(unreal_cmd_notice_ops);
pmodule_cmd_notice(unreal_cmd_notice);
pmodule_cmd_notice2(unreal_cmd_notice2);