summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_opermodes.cpp3
1 files changed, 3 insertions, 0 deletions
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];