diff options
author | Peter Powell <petpow@saberuk.com> | 2018-11-24 19:03:55 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-11-24 19:03:55 +0000 |
commit | 6596fb5ffea7a23827c994168ca1611918857af6 (patch) | |
tree | 1474707ebfa495fba26c40e75b8ee85ce8fdb93f /src/modules/m_showfile.cpp | |
parent | b00cd0295ee665443b2a5df7d6fccba9089e6518 (diff) |
Fix some incorrect conditions in the showfile module.
Thanks to @genius3000 for pointing this out.
Diffstat (limited to 'src/modules/m_showfile.cpp')
-rw-r--r-- | src/modules/m_showfile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_showfile.cpp b/src/modules/m_showfile.cpp index 3c1c77f0b..150b43ebc 100644 --- a/src/modules/m_showfile.cpp +++ b/src/modules/m_showfile.cpp @@ -55,13 +55,13 @@ class CommandShowFile : public Command { if (method == SF_NUMERIC) { - if (!introtext.empty() || !intronumeric) + if (!introtext.empty() && intronumeric) user->WriteRemoteNumeric(intronumeric, introtext); for (file_cache::const_iterator i = contents.begin(); i != contents.end(); ++i) user->WriteRemoteNumeric(textnumeric, InspIRCd::Format("- %s", i->c_str())); - if (!endtext.empty() || !endnumeric) + if (!endtext.empty() && endnumeric) user->WriteRemoteNumeric(endnumeric, endtext.c_str()); } else if (IS_LOCAL(user)) |