summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-06 18:03:30 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-06 18:03:30 +0000
commit73b20b7d06eec112498239d03576b62cf0e437fb (patch)
tree43408003cb3e428bf90474ccfb1b2e7fdc1a289f /src/modules/m_spanningtree
parentd87c8659876d59ac478128a263544060e85f1a40 (diff)
Fix this up to convert deque to const char* const for w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9382 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree')
-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")
{