From 8433084035a1d4b4ff0e800518ac152d3220c152 Mon Sep 17 00:00:00 2001 From: "trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Mon, 6 Dec 2004 05:55:46 +0000 Subject: BUILD : 1.7.6 (478) BUGS : N/A NOTES : 1. CS CLEAR strips +q/+a 2. CS CLEAR uses SVSMODE with Unreal to strip +q/a/o/h/v 3. SVSMODE unban works again on Viagra 4. Adds anope_cmd_svsmode_chan() to for SVSMODE on channels 5. OS CLEARMODES uses SVSMODE with Unreal to strip +q/a/o/h/v 6. memory.c, servers.c, slist.c, sockutil.c, misc. is doxygen ready 7. Unreal32 pseduo clients use SJOIN now to join the channels 8. clean out the process() buffers before we start to use them, maybe less garbage in them when we do bts 9. Few memory cleans up in hostserv do_setall() 10. Tons of clean up, only a handful left when you make strict git-svn-id: svn://svn.anope.org/anope/trunk@478 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@332 5417fbe8-f217-4b02-8779-1006273d7864 --- src/solidircd.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src/solidircd.c') diff --git a/src/solidircd.c b/src/solidircd.c index dd4867857..2bfe29d68 100644 --- a/src/solidircd.c +++ b/src/solidircd.c @@ -102,8 +102,7 @@ IRCDVar ircd[] = { 1, /* +I support */ 0, /* SJOIN ban char */ 0, /* SJOIN except char */ - 0, /* Services Client mode */ - 0, /* not p10 */ + 0, /* Can remove User Channel Modes with SVSMODE */ } , {NULL} @@ -512,7 +511,19 @@ void anope_cmd_release_svshold(char *nick) /* SVSMODE -b */ void anope_cmd_unban(char *name, char *nick) { - send_cmd(ServerName, "SVSMODE %s -b %s", name, nick); + anope_cmd_svsmode_chan(name, "-b", nick); +} + + +/* SVSMODE channel modes */ + +void anope_cmd_svsmode_chan(char *name, char *mode, char *nick) +{ + if (nick) { + send_cmd(ServerName, "SVSMODE %s %s %s", name, mode, nick); + } else { + send_cmd(ServerName, "SVSMODE %s %s", name, mode); + } } void anope_cmd_bot_chan_mode(char *nick, char *chan) -- cgit