From 73b20b7d06eec112498239d03576b62cf0e437fb Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 6 Apr 2008 18:03:30 +0000 Subject: 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 --- src/modules/m_spanningtree/treesocket2.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/modules') 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") { -- cgit v1.2.3