summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_opermotd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp
index 4635cd831..656a63e3c 100644
--- a/src/modules/m_opermotd.cpp
+++ b/src/modules/m_opermotd.cpp
@@ -61,9 +61,10 @@ class CommandOpermotd : public Command
void ShowOperMOTD(User* user, bool show_missing)
{
- if (opermotd.empty() && show_missing)
+ if (opermotd.empty())
{
- user->WriteRemoteNumeric(ERR_NOOPERMOTD, "OPERMOTD file is missing");
+ if (show_missing)
+ user->WriteRemoteNumeric(ERR_NOOPERMOTD, "OPERMOTD file is missing");
return;
}