summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-02 01:58:41 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-02 01:58:41 +0000
commiteb334f8c69872cc0de28ffd85b41555f196a23dd (patch)
tree9192fb403ed75e31136d7f938d0d8180f58c10c8
parent73bd4d4240ee4ed88776ee9db0597a2f219e9070 (diff)
and a little tweak to remote MOTD too.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7208 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/cmd_motd.cpp3
-rw-r--r--src/modules/m_spanningtree/main.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/cmd_motd.cpp b/src/cmd_motd.cpp
index f6c76dac4..6aaf1a9af 100644
--- a/src/cmd_motd.cpp
+++ b/src/cmd_motd.cpp
@@ -24,7 +24,6 @@ extern "C" DllExport command_t* init_command(InspIRCd* Instance)
*/
CmdResult cmd_motd::Handle (const char** parameters, int pcnt, userrec *user)
{
- if (!pcnt)
- user->ShowMOTD();
+ user->ShowMOTD();
return CMD_SUCCESS;
}
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 7cba58811..c1e462697 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -236,7 +236,10 @@ int ModuleSpanningTree::HandleMotd(const char** parameters, int pcnt, userrec* u
/* Send it out remotely, generate no reply yet */
TreeServer* s = Utils->FindServerMask(parameters[0]);
if (s)
+ {
+ params[0] = s->GetName();
Utils->DoOneToOne(user->nick, "MOTD", params, s->GetName());
+ }
else
user->WriteServ( "402 %s %s :No such server", user->nick, parameters[0]);
return 1;