diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-23 13:29:10 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-23 13:29:10 +0000 |
commit | c1e564e231bac52d48a537bf95be70a22aa67fd6 (patch) | |
tree | 7590ac846d66ecc289ac02f98c9f1f73b2785454 /src/commands.cpp | |
parent | 1558b65e9fe9d15b76b8f89cfb75edbb48da4697 (diff) |
Added svsjoin ability
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@706 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 11 |
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]; + } } |