X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_invisible.cpp;h=965ff2635c2bdd72e0b7dac85eef7a0ed4a96c47;hb=495ea4be05859f46cbf99c10541210fa3590f01a;hp=aa69d1b8570e3399e3b353830de35ed7077c0fae;hpb=648c95b10bc1c3afb23183e5d355286ef5f18f6f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_invisible.cpp b/src/modules/m_invisible.cpp index aa69d1b85..965ff2635 100644 --- a/src/modules/m_invisible.cpp +++ b/src/modules/m_invisible.cpp @@ -2,8 +2,8 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * InspIRCd: (C) 2002-2009 InspIRCd Development Team + * See: http://wiki.inspircd.org/Credits * * This program is free but copyrighted software; see * the file COPYING for details. @@ -57,24 +57,6 @@ class InvisibleMode : public ModeHandler { if (dest->IsModeSet('Q') != adding) { - bool ok = false; - - 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 */ @@ -113,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