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:
@@ -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, '@')))
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user