diff options
author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-11-22 03:45:32 +0000 |
---|---|---|
committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-11-22 03:45:32 +0000 |
commit | 089557ed8743c7a6948d9277de17d51a7bd8db79 (patch) | |
tree | 14450bbad887f7df3be4e81bc4d21c9641dd15f9 /src/unreal31.c | |
parent | 958bf6215255a14d11108adf39f5106e958dd9b5 (diff) |
BUILD : 1.7.6 (458) BUGS : N/A NOTES : Updated our SGLINE/SZLINE support to all ircd where avaiable, this fixes some issues as well 1. Unreal still doesnt do SGLINE well so its still disabled at this time 2. We now enforce SZLINE on ircd with NICKIP 3. Added check_szline() so we can check for szline matches 4. Ultimate3 (s)zline work as documented, which is AKILL without the user part
git-svn-id: svn://svn.anope.org/anope/trunk@458 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@312 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/unreal31.c')
-rw-r--r-- | src/unreal31.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/unreal31.c b/src/unreal31.c index 775fa3420..95750926b 100644 --- a/src/unreal31.c +++ b/src/unreal31.c @@ -60,7 +60,7 @@ IRCDVar ircd[] = { "-r+d", /* Mode on Nick Change */ 0, /* Supports SGlines */ 1, /* Supports SQlines */ - 0, /* Supports SZlines */ + 1, /* Supports SZlines */ 1, /* Supports Halfop +h */ 3, /* Number of server args */ 0, /* Join 2 Set */ @@ -1433,13 +1433,16 @@ void anope_cmd_unsgline(char *mask) /* UNSZLINE */ void anope_cmd_unszline(char *mask) { - /* Not Supported by this IRCD */ + send_cmd(NULL, "%s - Z * %s %s", send_token("TKL", "BD"), mask, + s_OperServ); } /* SZLINE */ -void anope_cmd_szline(char *mask, char *reason) +void anope_cmd_szline(char *mask, char *reason, char *whom) { - /* Not Supported by this IRCD */ + send_cmd(NULL, "%s + Z * %s %s %ld %ld :%s", send_token("TKL", "BD"), + mask, whom, (long int) time(NULL) + 86400 * 2, + (long int) time(NULL), reason); } /* SGLINE */ |