summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp
index b2aa8d475..67e235e0a 100644
--- a/src/modules/m_spanningtree/treesocket2.cpp
+++ b/src/modules/m_spanningtree/treesocket2.cpp
@@ -363,7 +363,14 @@ bool TreeSocket::ProcessLine(std::string &line)
}
else if (command == "MAP")
{
- return Utils->Creator->HandleMap(prefix, params);
+ User* user = Instance->FindNick(prefix);
+ if (user)
+ {
+ const char* ptrs[127];
+ for (size_t n = 0; (n < params.size()) && (n < 127); ++n)
+ ptrs[n] = params[n].c_str();
+ return Utils->Creator->HandleMap(ptrs, params.size(), user);
+ }
}
else if (command == "SERVER")
{