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