summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-04-26 19:10:54 +0100
committerPeter Powell <petpow@saberuk.com>2019-04-27 23:36:46 +0100
commit9f5345455080a5d311bbed7c2bef08924c17fb84 (patch)
tree5829c8b361c69509baab16ac2e4497b013c660ac /src/modules
parentece446b149e4b5692cee1430c169ca2a255244cd (diff)
Fix hiding ERR_NOOPERMOTD response when an operator logs in.
Diffstat (limited to 'src/modules')
-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;
}