From e6ea9f7d4a4bf015524749da6ffeecf1d15c9268 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 27 Aug 2024 14:29:56 +0100 Subject: 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. --- src/modules/m_opermotd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_opermotd.cpp') diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp index 284043f4e..91453106a 100644 --- a/src/modules/m_opermotd.cpp +++ b/src/modules/m_opermotd.cpp @@ -118,9 +118,9 @@ private: // Some clients can not handle receiving RPL_OMOTD with an empty // trailing parameter so if a line is empty we replace it with // a single space. + InspIRCd::ProcessColors(line); newmotd.push_back(line.empty() ? " " : line); } - InspIRCd::ProcessColors(newmotd); } public: -- cgit v1.3.1-10-gc9f91