mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Don't check permission to +Q for remote users, probably fixes bug #619 reported by yell0w.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10821 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
f5f20e3773
commit
06396fb2b5
@ -59,6 +59,8 @@ class InvisibleMode : public ModeHandler
|
||||
{
|
||||
bool ok = false;
|
||||
|
||||
if (IS_LOCAL(source))
|
||||
{
|
||||
for (int j = 0; j < conf->Enumerate("type"); j++)
|
||||
{
|
||||
std::string opertype = conf->ReadValue("type","name",j);
|
||||
@ -74,6 +76,7 @@ class InvisibleMode : public ModeHandler
|
||||
source->WriteNumeric(481, "%s :Permission Denied - You do not have access to become invisible via user mode +Q", source->nick.c_str());
|
||||
return MODEACTION_DENY;
|
||||
}
|
||||
}
|
||||
|
||||
dest->SetMode('Q', adding);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user