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
commitf3e386b625ac025e76e3bbd339684f007788070c (patch)
tree5e0b87364058724ea74c74a186942a9a3dce1a1e /src/protocol/unreal32.c
parenta587cdc9987b0b8f4c86caa70f1bca741a69145d (diff)
Added cmd_svsjoin() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1264 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r--src/protocol/unreal32.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index baf645473..ce730bcb3 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -1453,13 +1453,10 @@ int anope_event_smo(const char *source, int ac, const char **av)
/* In older Unreal SVSJOIN and SVSNLINE tokens were mixed so SVSJOIN and SVSNLINE are broken
when coming from a none TOKEN'd server
*/
-void unreal_cmd_svsjoin(const char *source, const char *nick, const char *chan, const char *param)
+void UnrealIRCdProto::cmd_svsjoin(const char *source, const char *nick, const char *chan, const char *param)
{
- if (param) {
- send_cmd(source, "%s %s %s :%s", send_token("SVSJOIN", "BX"), nick, chan, param);
- } else {
- send_cmd(source, "%s %s :%s", send_token("SVSJOIN", "BX"), nick, chan);
- }
+ if (param) send_cmd(source, "%s %s %s :%s", send_token("SVSJOIN", "BX"), nick, chan, param);
+ else send_cmd(source, "%s %s :%s", send_token("SVSJOIN", "BX"), nick, chan);
}
/* svspart
@@ -1903,7 +1900,6 @@ void moduleAddAnopeCmds()
pmodule_cmd_242(unreal_cmd_242);
pmodule_cmd_243(unreal_cmd_243);
pmodule_cmd_211(unreal_cmd_211);
- pmodule_cmd_svsjoin(unreal_cmd_svsjoin);
pmodule_cmd_svspart(unreal_cmd_svspart);
pmodule_cmd_swhois(unreal_cmd_swhois);
pmodule_cmd_eob(unreal_cmd_eob);