X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_operprefix.cpp;h=b57b06ffef8153e43708b6a4825af8473fdaf526;hb=338946c969a34a41e7744696e875862027a9cf28;hp=b355047ee0bcbdafd881ca6a47df5e726e26fadf;hpb=d1df2bce56275e1297d94d82d4dbef6f6cf582b6;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp index b355047ee..b57b06ffe 100644 --- a/src/modules/m_operprefix.cpp +++ b/src/modules/m_operprefix.cpp @@ -1,6 +1,11 @@ /* * InspIRCd -- Internet Relay Chat Daemon * + * Copyright (C) 2013, 2017 Sadie Powell + * Copyright (C) 2012-2016 Attila Molnar + * Copyright (C) 2012, 2019 Robby + * Copyright (C) 2009-2010 Craig Edwards + * Copyright (C) 2009 Uli Schlachter * Copyright (C) 2009 Daniel De Graaf * Copyright (C) 2008 Robin Burchell * @@ -32,9 +37,8 @@ class OperPrefixMode : public PrefixMode OperPrefixMode(Module* Creator) : PrefixMode(Creator, "operprefix", 'y', OPERPREFIX_VALUE) { - std::string pfx = ServerInstance->Config->ConfValue("operprefix")->getString("prefix", "!"); - prefix = pfx.empty() ? '!' : pfx[0]; - levelrequired = INT_MAX; + prefix = ServerInstance->Config->ConfValue("operprefix")->getString("prefix", "!", 1, 1)[0]; + ranktoset = ranktounset = UINT_MAX; } }; @@ -45,7 +49,7 @@ class HideOperWatcher : public ModeWatcher public: HideOperWatcher(ModuleOperPrefixMode* parent); - void AfterMode(User* source, User* dest, Channel* channel, const std::string ¶meter, bool adding); + void AfterMode(User* source, User* dest, Channel* channel, const std::string ¶meter, bool adding) CXX11_OVERRIDE; }; class ModuleOperPrefixMode : public Module @@ -102,7 +106,7 @@ class ModuleOperPrefixMode : public Module Version GetVersion() CXX11_OVERRIDE { - return Version("Gives opers cmode +y which provides a staff prefix.", VF_VENDOR); + return Version("Gives opers channel mode +y which provides a staff prefix", VF_VENDOR); } void Prioritize() CXX11_OVERRIDE