summaryrefslogtreecommitdiff
path: root/src/protocol/unreal32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol/unreal32.c')
-rw-r--r--src/protocol/unreal32.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c
index decdd0f8a..80b1e03ce 100644
--- a/src/protocol/unreal32.c
+++ b/src/protocol/unreal32.c
@@ -1656,16 +1656,19 @@ int anope_event_smo(char *source, int ac, char **av)
/* svsjoin
parv[0] - sender
parv[1] - nick to make join
- parv[2] - channel(s) to join
+ parv[2] - channel to join
parv[3] - (optional) channel key(s)
- - current we do not support the keys part
*/
/* 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(char *source, char *nick, char *chan)
+void unreal_cmd_svsjoin(char *source, char *nick, char *chan, char *param)
{
- 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