mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 12:09:03 -04:00
Fix for bug #297. /MODULES now correctly finds remote server on wildcard. Marked for QA.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7206 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
858ea80c87
commit
e6ce64246b
@ -267,6 +267,8 @@ int ModuleSpanningTree::HandleAdmin(const char** parameters, int pcnt, userrec*
|
||||
|
||||
int ModuleSpanningTree::HandleModules(const char** parameters, int pcnt, userrec* user)
|
||||
{
|
||||
if (pcnt > 0)
|
||||
{
|
||||
if (match(ServerInstance->Config->ServerName, parameters[0]))
|
||||
return 1;
|
||||
|
||||
@ -274,10 +276,15 @@ int ModuleSpanningTree::HandleModules(const char** parameters, int pcnt, userrec
|
||||
params.push_back(parameters[0]);
|
||||
TreeServer* s = Utils->FindServerMask(parameters[0]);
|
||||
if (s)
|
||||
{
|
||||
params[0] = s->GetName();
|
||||
Utils->DoOneToOne(user->nick, "MODULES", params, s->GetName());
|
||||
}
|
||||
else
|
||||
user->WriteServ( "402 %s %s :No such server", user->nick, parameters[0]);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ModuleSpanningTree::HandleStats(const char** parameters, int pcnt, userrec* user)
|
||||
|
Loading…
x
Reference in New Issue
Block a user