diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-12-27 02:18:46 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-12-27 02:18:46 +0000 |
commit | 91665f1ff618dd0dc8ebda4923aaab8924bdcf68 (patch) | |
tree | 00ddedc5c6a9acb58148999ac36ad25c4c983f23 | |
parent | 9f5c76c484c2a2c10aaed9714e46bd0ce6d533c7 (diff) |
We dont need <type:canquiet> now in 1.2, as class tags allow restrictions of user and channel modes directly via the core, without need for this extra security sugar
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10912 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_invisible.cpp | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/modules/m_invisible.cpp b/src/modules/m_invisible.cpp index c1b2dcc7f..3d61ec414 100644 --- a/src/modules/m_invisible.cpp +++ b/src/modules/m_invisible.cpp @@ -57,27 +57,6 @@ class InvisibleMode : public ModeHandler { if (dest->IsModeSet('Q') != adding) { - bool ok = false; - - if (IS_LOCAL(source)) - { - for (int j = 0; j < conf->Enumerate("type"); j++) - { - std::string opertype = conf->ReadValue("type","name",j); - if (opertype == source->oper) - { - ok = conf->ReadFlag("type", "canquiet", j); - break; - } - } - - if (!ok) - { - 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); /* Fix for bug #379 reported by stealth. On +/-Q make m_watch think the user has signed on/off */ @@ -116,7 +95,7 @@ class InvisibleMode : public ModeHandler } } - ServerInstance->SNO->WriteToSnoMask('A', "\2NOTICE\2: Oper %s has become %svisible (%sQ)", dest->GetFullHost().c_str(), adding ? "in" : "", adding ? "+" : "-"); + ServerInstance->SNO->WriteToSnoMask('A', "\2NOTICE\2: Oper %s has become %svisible (%cQ)", dest->GetFullHost().c_str(), adding ? "in" : "", adding ? '+' : '-'); return MODEACTION_ALLOW; } else |