X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fu_listmode.h;h=cad52fc12c4c578a6deda9806afe91428a158dcd;hb=e56613b0035f2e9acf912af4ab68ad410100e1ea;hp=5d1607b5c8dc741ef9ec4c1714e14e1d19246501;hpb=31f1e7ad092f8bf16ee653cc105eea4a769650ca;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/u_listmode.h b/include/u_listmode.h index 5d1607b5c..cad52fc12 100644 --- a/include/u_listmode.h +++ b/include/u_listmode.h @@ -174,7 +174,7 @@ class ListModeBase : public ModeHandler channel->GetExt(infokey, el); if (el) { - irc::modestacker modestack(false); + irc::modestacker modestack(ServerInstance, false); std::deque stackresult; std::vector mode_junk; mode_junk.push_back(channel->name); @@ -288,7 +288,7 @@ class ListModeBase : public ModeHandler { // We have a pattern matching the channel... maxsize = el->size(); - if (maxsize < it->limit) + if (IS_LOCAL(source) || (maxsize < it->limit)) { /* Ok, it *could* be allowed, now give someone subclassing us * a chance to validate the parameter. @@ -396,7 +396,7 @@ class ListModeBase : public ModeHandler { modelist* mlist; chan->GetExt(infokey, mlist); - irc::modestacker modestack(true); + irc::modestacker modestack(ServerInstance, true); std::deque stackresult; if (mlist) {