]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/treesocket2.cpp
Its ok to allow remote map to non-opers now, found the real culprit
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / treesocket2.cpp
index b2aa8d475e58a2d1f7358b6211f929dd8c79112a..67e235e0af80207b44af568540fa317351515ae9 100644 (file)
@@ -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")
                        {