aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_showfile.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-08-27 14:29:56 +0100
committerGravatar Sadie Powell2024-08-27 14:29:56 +0100
commite6ea9f7d4a4bf015524749da6ffeecf1d15c9268 (patch)
tree1a46e36ddd8c5bedc35a1fddd37c3c169714cbdf /src/modules/m_showfile.cpp
parentFix a minor doxygen warning. (diff)
Change InspIRCd::ProcessColors to take a string instead of a vector.
This is more useful for how MOTDs are processed now as we iterate through them anyway and this allows us to avoid a needless second iteration.
Diffstat (limited to 'src/modules/m_showfile.cpp')
-rw-r--r--src/modules/m_showfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_showfile.cpp b/src/modules/m_showfile.cpp
index 82cb7abe0..38d164547 100644
--- a/src/modules/m_showfile.cpp
+++ b/src/modules/m_showfile.cpp
@@ -103,9 +103,9 @@ public:
// Some clients can not handle receiving NOTICE/PRIVMSG/RPL_RULES
// with an empty trailing parameter so if a line is empty we
// replace it with a single space.
+ InspIRCd::ProcessColors(line);
contents.push_back(line.empty() ? " " : line);
}
- InspIRCd::ProcessColors(contents);
contents.shrink_to_fit();
}
};