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

- Fix for set::restrict-channelmodes (eating parameters).

This commit is contained in:
Bram Matthys
2003-04-13 20:05:54 +00:00
parent bf0b2a98cd
commit 3c6ecbcbb2
2 changed files with 13 additions and 11 deletions
+1
View File
@@ -2055,3 +2055,4 @@ seen. gmtime warning still there
- badword::action::block should now be ok
- Added some missing /stats flags to help.conf and the /stats ? output (#0000886) reported
by Rocko
- Fix for set::restrict-channelmodes (eating parameters).
+12 -11
View File
@@ -2224,17 +2224,6 @@ void set_mode(aChannel *chptr, aClient *cptr, int parc, char *parv[], u_int *pco
for (curchr = parv[0]; *curchr; curchr++)
{
if (checkrestr && strchr(RESTRICT_CHANNELMODES, *curchr))
{
if (warnrestr)
{
sendto_one(cptr, ":%s NOTICE %s :Setting/removing of channelmode(s) '%s' has been disabled.",
me.name, cptr->name, RESTRICT_CHANNELMODES);
warnrestr = 0;
}
continue;
}
switch (*curchr)
{
case '+':
@@ -2281,6 +2270,18 @@ void set_mode(aChannel *chptr, aClient *cptr, int parc, char *parv[], u_int *pco
break;
}
if (checkrestr && strchr(RESTRICT_CHANNELMODES, *curchr))
{
if (warnrestr)
{
sendto_one(cptr, ":%s NOTICE %s :Setting/removing of channelmode(s) '%s' has been disabled.",
me.name, cptr->name, RESTRICT_CHANNELMODES);
warnrestr = 0;
}
paracount += foundat.parameters;
break;
}
#ifndef NO_OPEROVERRIDE
if ((Halfop_mode(modetype) == FALSE) && opermode == 2 && htrig != 1)
{