From 9c3a20c15123c4812c236f33418c1fdfe74c3ff2 Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 11 May 2007 18:09:22 +0000 Subject: Last commit of that batch: Fix some returncodes (some stuff here really didn't need to be routed), clarify a few in comments, and also add some todos for myself next. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6978 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_opermotd.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/modules/m_opermotd.cpp') diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp index a80aa513c..447468caf 100644 --- a/src/modules/m_opermotd.cpp +++ b/src/modules/m_opermotd.cpp @@ -29,14 +29,18 @@ CmdResult ShowOperMOTD(userrec* user) user->WriteServ(std::string("425 ") + user->nick + std::string(" :OPERMOTD file is missing")); return CMD_FAILURE; } + user->WriteServ(std::string("375 ") + user->nick + std::string(" :- IRC Operators Message of the Day")); + for(int i=0; i != opermotd->FileSize(); i++) { user->WriteServ(std::string("372 ") + user->nick + std::string(" :- ") + opermotd->GetLine(i)); } + user->WriteServ(std::string("376 ") + user->nick + std::string(" :- End of OPERMOTD")); - return CMD_SUCCESS; + /* don't route me */ + return CMD_LOCALONLY; } /** Handle /OPERMOTD -- cgit v1.2.3