From da29af8cba49d51e53d6e68237ccbf6370b6dd1f Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 25 Feb 2016 16:12:09 +0100 Subject: Convert WriteNumeric() calls to pass the parameters of the numeric as method parameters --- src/modules/m_monitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_monitor.cpp') diff --git a/src/modules/m_monitor.cpp b/src/modules/m_monitor.cpp index 139c70e76..b2e06f191 100644 --- a/src/modules/m_monitor.cpp +++ b/src/modules/m_monitor.cpp @@ -285,7 +285,7 @@ class CommandMonitor : public SplitCommand if (result == IRCv3::Monitor::Manager::WR_TOOMANY) { // List is full, send error which includes the remaining nicks that were not processed - user->WriteNumeric(ERR_MONLISTFULL, "%u %s%s%s :Monitor list is full", maxmonitor, nick.c_str(), (ss.StreamEnd() ? "" : ","), ss.GetRemaining().c_str()); + user->WriteNumeric(ERR_MONLISTFULL, maxmonitor, InspIRCd::Format("%s%s%s", nick.c_str(), (ss.StreamEnd() ? "" : ","), ss.GetRemaining().c_str()), "Monitor list is full"); break; } else if (result != IRCv3::Monitor::Manager::WR_OK) @@ -346,7 +346,7 @@ class CommandMonitor : public SplitCommand out.Add(entry->GetNick()); } out.Flush(); - user->WriteNumeric(RPL_ENDOFMONLIST, ":End of MONITOR list"); + user->WriteNumeric(RPL_ENDOFMONLIST, "End of MONITOR list"); } else if (subcmd == 'S') { -- cgit v1.3.1-10-gc9f91