1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 08:33:12 +02:00

Extban fixes

This commit is contained in:
codemastr
2004-01-10 05:53:36 +00:00
parent aeff467a36
commit ccd8318cd4
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -2702,4 +2702,4 @@ seen. gmtime warning still there
- Made CmodeAdd return MODERR_EXISTS if the mode already exists
- Fixes for TRE under win32
- Made Extbans use the module object system
- Fixed a problem caused by the previous change
+3 -3
View File
@@ -2263,7 +2263,7 @@ int do_mode_char(aChannel *chptr, long modetype, char modechar, char *param,
if ((tmpstr[0] == '~') && MyClient(cptr) && !bounce)
{
/* extban: check access if needed */
ExtbanInfo *p = findmod_by_bantype(tmpstr[1]);
Extban *p = findmod_by_bantype(tmpstr[1]);
if (p && p->is_ok && !p->is_ok(cptr, chptr, tmpstr, EXBCHK_ACCESS, what, EXBTYPE_BAN))
{
if (IsAnOper(cptr))
@@ -2299,7 +2299,7 @@ int do_mode_char(aChannel *chptr, long modetype, char modechar, char *param,
if ((tmpstr[0] == '~') && MyClient(cptr) && !bounce)
{
/* extban: check access if needed */
ExtbanInfo *p = findmod_by_bantype(tmpstr[1]);
Extban *p = findmod_by_bantype(tmpstr[1]);
if (p && p->is_ok && !p->is_ok(cptr, chptr, tmpstr, EXBCHK_ACCESS, what, EXBTYPE_EXCEPT))
{
if (IsAnOper(cptr))
@@ -3169,7 +3169,7 @@ char *clean_ban_mask(char *mask, int what)
char *cp;
char *user;
char *host;
ExtbanInfo *p;
Extban *p;
cp = index(mask, ' ');
if (cp)