From a3c403ef79b483026cfc87ded6091b8940971732 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 29 Jan 2006 20:37:34 +0000 Subject: Auto-assume "+" on the start of opermode block if not included git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2971 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_opermodes.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp index 3f840f894..a49cb34e8 100644 --- a/src/modules/m_opermodes.cpp +++ b/src/modules/m_opermodes.cpp @@ -64,6 +64,9 @@ class ModuleModesOnOper : public Module if (!strcmp(typen.c_str(),user->oper)) { std::string ThisOpersModes = Conf->ReadValue("type","modes",j); + char first = *(ThisOpersModes.c_str()); + if ((first != '+') && (first != '-')) + ThisOpersModes = "+" + ThisOpersModes; if (ThisOpersModes != "") { char* modes[2]; -- cgit v1.2.3