summaryrefslogtreecommitdiff
path: root/src/modules/m_opermotd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_opermotd.cpp')
-rw-r--r--src/modules/m_opermotd.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp
index e64239950..aa927ad38 100644
--- a/src/modules/m_opermotd.cpp
+++ b/src/modules/m_opermotd.cpp
@@ -59,6 +59,7 @@ class CommandOpermotd : public Command
class ModuleOpermotd : public Module
{
CommandOpermotd* mycommand;
+ bool onoper;
public:
void LoadOperMOTD()
@@ -72,6 +73,7 @@ class ModuleOpermotd : public Module
opermotd = NULL;
}
opermotd = new FileReader(ServerInstance, filename);
+ onoper = conf->ReadFlag("opermoth","onoper","yes",0);
delete conf;
}
@@ -99,7 +101,8 @@ class ModuleOpermotd : public Module
virtual void OnOper(User* user, const std::string &opertype)
{
- ShowOperMOTD(user);
+ if (onoper)
+ ShowOperMOTD(user);
}
virtual void OnRehash(User* user, const std::string &parameter)