summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree/main.cpp3
1 files changed, 3 insertions, 0 deletions
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;