1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-09 15:23:12 +02:00

- Added stuff that will easy the transition to extended bans next release.

- Added beta19 release notes
- Made USE_ZIP the default again in src/win32/unrealinst.iss
This commit is contained in:
Bram Matthys
2003-11-21 20:30:53 +00:00
parent 948b4e61ad
commit 044d01e1d7
4 changed files with 60 additions and 55 deletions
+11
View File
@@ -2198,6 +2198,8 @@ int do_mode_char(aChannel *chptr, long modetype, char modechar, char *param,
tmpstr = clean_ban_mask(param);
if (BadPtr(tmpstr))
break; /* ignore ban, but eat param */
if (MyClient(cptr) && (*tmpstr == '~') && (what == MODE_ADD))
break; /* deny for now.. */
/* For bounce, we don't really need to worry whether
* or not it exists on our server. We'll just always
* bounce it. */
@@ -2219,6 +2221,8 @@ int do_mode_char(aChannel *chptr, long modetype, char modechar, char *param,
tmpstr = clean_ban_mask(param);
if (BadPtr(tmpstr))
break; /* ignore except, but eat param */
if (MyClient(cptr) && (*tmpstr == '~') && (what == MODE_ADD))
break; /* deny for now.. */
/* For bounce, we don't really need to worry whether
* or not it exists on our server. We'll just always
* bounce it. */
@@ -3087,6 +3091,13 @@ char *clean_ban_mask(char *mask)
if (!*mask)
return NULL;
/* This was added right before beta19 release to ease the
* beta19<->beta20 transfer when we implement extended bans.
* This is only to accept such masks from remote servers!
*/
if (*mask == '~')
return mask;
if ((user = index((cp = mask), '!')))
*user++ = '\0';
if ((host = rindex(user ? user : cp, '@')))
+1 -1
View File
@@ -3,7 +3,7 @@
; #define USE_SSL
; Uncomment the above line to package an SSL build
; #define USE_ZIP
#define USE_ZIP
; Uncomment the above line to package with ZIP support