summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-23 13:29:10 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-23 13:29:10 +0000
commitc1e564e231bac52d48a537bf95be70a22aa67fd6 (patch)
tree7590ac846d66ecc289ac02f98c9f1f73b2785454 /src
parent1558b65e9fe9d15b76b8f89cfb75edbb48da4697 (diff)
Added svsjoin ability
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@706 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/commands.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 553f2db58..05ce233e6 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -2272,6 +2272,17 @@ void handle_link_packet(char* udp_msg, char* tcp_host, serverrec *serv)
log(DEBUG,"Rewrote KICK from services to: '%s'",udp_msg);
token = udp_msg[0];
}
+ if (!strcmp(command,"SVSJOIN"))
+ {
+ snprintf(udp_msg,MAXBUF,"J %s %s",source,data);
+ log(DEBUG,"Rewrote SVSJOIN from services to: '%s'",udp_msg);
+ userrec* u = Find(source);
+ if (u)
+ {
+ add_channel(user,data,"",true);
+ }
+ token = udp_msg[0];
+ }
}