aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-07-05 17:47:19 +0100
committerGravatar Sadie Powell2024-07-05 17:47:19 +0100
commit1263f3cf63a1caff2cd8edbee9386bb6f170941f (patch)
tree61f04f0addf4b9c462150f8d9040a84d90d4f5b8 /src/modules
parentBuild with -pie as well as -fPIE. (diff)
downloadinspircd++-1263f3cf63a1caff2cd8edbee9386bb6f170941f.tar.gz
inspircd++-1263f3cf63a1caff2cd8edbee9386bb6f170941f.tar.bz2
inspircd++-1263f3cf63a1caff2cd8edbee9386bb6f170941f.zip
Fix MOTD parsing accidentally skipping lines which are blank.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_opermotd.cpp2
-rw-r--r--src/modules/m_showfile.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp
index a501d442c..4ddd9bac7 100644
--- a/src/modules/m_opermotd.cpp
+++ b/src/modules/m_opermotd.cpp
@@ -112,7 +112,7 @@ private:
// Process the MOTD entry.
auto& newmotd = newmotds[motd];
- irc::sepstream linestream(file.contents, '\n');
+ irc::sepstream linestream(file.contents, '\n', true);
for (std::string line; linestream.GetToken(line); )
{
// Some clients can not handle receiving RPL_OMOTD with an empty
diff --git a/src/modules/m_showfile.cpp b/src/modules/m_showfile.cpp
index ea6ea0730..b12c3f60b 100644
--- a/src/modules/m_showfile.cpp
+++ b/src/modules/m_showfile.cpp
@@ -97,7 +97,7 @@ public:
// Process the entry.
contents.clear();
- irc::sepstream linestream(filecontents, '\n');
+ irc::sepstream linestream(filecontents, '\n', true);
for (std::string line; linestream.GetToken(line); )
{
// Some clients can not handle receiving NOTICE/PRIVMSG/RPL_RULES