X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_showfile.cpp;h=150b43ebcb9cf73d2900468a496313d20f021c89;hb=cf5d382b822cecd54fdbc77e4c1c4de8a8aa3c35;hp=3c1c77f0b893584ee86a17015e7862e2b4248f8a;hpb=56a95ff4aee7bc6e7f0569164cec7a4e786d4133;p=user%2Fhenk%2Fcode%2Finspircd.git 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))