summaryrefslogtreecommitdiff
path: root/src/modules/m_opermotd.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-11 18:09:22 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-11 18:09:22 +0000
commit9c3a20c15123c4812c236f33418c1fdfe74c3ff2 (patch)
treea498a0ef72af84819c7dff00d5b8a2c61d841f24 /src/modules/m_opermotd.cpp
parente1f34688d6326a7b60d8044f8bfe8bbaeb464602 (diff)
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
Diffstat (limited to 'src/modules/m_opermotd.cpp')
-rw-r--r--src/modules/m_opermotd.cpp6
1 files changed, 5 insertions, 1 deletions
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