mirror of
https://github.com/inspircd/inspircd.git
synced 2025-04-22 16:01:29 -04:00
Allow SAMODE and remote users to set +qa without local-user checks (bug?)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4558 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
a1f073f66f
commit
faa007d405
@ -79,7 +79,7 @@ class ChanFounder : public ModeHandler
|
|||||||
std::string founder = "cm_founder_"+std::string(channel->name);
|
std::string founder = "cm_founder_"+std::string(channel->name);
|
||||||
|
|
||||||
// source is a server, or ulined, we'll let them +-q the user.
|
// source is a server, or ulined, we'll let them +-q the user.
|
||||||
if ((Srv->IsUlined(source->nick)) || (Srv->IsUlined(source->server)) || (!*source->server))
|
if ((Srv->IsUlined(source->nick)) || (Srv->IsUlined(source->server)) || (!*source->server) || (!IS_LOCAL(source)))
|
||||||
{
|
{
|
||||||
if (adding)
|
if (adding)
|
||||||
{
|
{
|
||||||
@ -182,7 +182,7 @@ class ChanProtect : public ModeHandler
|
|||||||
std::string founder = "cm_founder_"+std::string(channel->name);
|
std::string founder = "cm_founder_"+std::string(channel->name);
|
||||||
|
|
||||||
// source has +q, is a server, or ulined, we'll let them +-a the user.
|
// source has +q, is a server, or ulined, we'll let them +-a the user.
|
||||||
if ((Srv->IsUlined(source->nick)) || (Srv->IsUlined(source->server)) || (!*source->server) || (source->GetExt(founder,dummyptr)))
|
if ((Srv->IsUlined(source->nick)) || (Srv->IsUlined(source->server)) || (!*source->server) || (source->GetExt(founder,dummyptr)) || (!IS_LOCAL(source)))
|
||||||
{
|
{
|
||||||
if (adding)
|
if (adding)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user