summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-03-29 17:45:56 +0100
committerPeter Powell <petpow@saberuk.com>2018-04-22 23:30:41 +0100
commit6d1c1cb51753f986b86b408a5828373d0066624b (patch)
tree8169e18678174ed5b23d643981c10f824642bacb /src/modules
parent35c8cde85996e9fe89920acb92a84c5d9bd6aeaf (diff)
Always process MOTD formatting escape codes.
The options for disabling these were added to keep compatibility with previous 2.0 releases and are not needed any more.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_opermotd.cpp4
-rw-r--r--src/modules/m_showfile.cpp3
2 files changed, 2 insertions, 5 deletions
diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp
index 30f2ce303..6884cd447 100644
--- a/src/modules/m_opermotd.cpp
+++ b/src/modules/m_opermotd.cpp
@@ -100,14 +100,12 @@ class ModuleOpermotd : public Module
{
FileReader reader(conf->getString("file", "opermotd"));
cmd.opermotd = reader.GetVector();
+ InspIRCd::ProcessColors(cmd.opermotd);
}
catch (CoreException&)
{
// Nothing happens here as we do the error handling in ShowOperMOTD.
}
-
- if (conf->getBool("processcolors"))
- InspIRCd::ProcessColors(cmd.opermotd);
}
};
diff --git a/src/modules/m_showfile.cpp b/src/modules/m_showfile.cpp
index 2d1354aff..83030b7a1 100644
--- a/src/modules/m_showfile.cpp
+++ b/src/modules/m_showfile.cpp
@@ -91,8 +91,7 @@ class CommandShowFile : public Command
method = SF_NOTICE;
contents = filecontents;
- if (tag->getBool("colors"))
- InspIRCd::ProcessColors(contents);
+ InspIRCd::ProcessColors(contents);
}
};