]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/opertype.cpp
modulemanger: check dependencies correctly
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / opertype.cpp
index 27cb8bde4968fd6acc63fb8f984d5f6f0fc58833..c1105aa71c7b19cd956f6196f789f7bdc847714f 100644 (file)
@@ -14,9 +14,9 @@
 #include "inspircd.h"
 #include "xline.h"
 
-#include "m_spanningtree/treesocket.h"
-#include "m_spanningtree/treeserver.h"
-#include "m_spanningtree/utils.h"
+#include "treesocket.h"
+#include "treeserver.h"
+#include "utils.h"
 
 /* $ModDep: m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/treesocket.h */
 
@@ -24,7 +24,7 @@
 /** Because the core won't let users or even SERVERS set +o,
  * we use the OPERTYPE command to do this.
  */
-bool TreeSocket::OperType(const std::string &prefix, std::deque<std::string> &params)
+bool TreeSocket::OperType(const std::string &prefix, parameterlist &params)
 {
        if (params.size() != 1)
                return true;
@@ -32,7 +32,7 @@ bool TreeSocket::OperType(const std::string &prefix, std::deque<std::string> &pa
        User* u = this->ServerInstance->FindNick(prefix);
        if (u)
        {
-               if (!u->IsModeSet('o'))
+               if (!IS_OPER(u))
                        this->ServerInstance->Users->all_opers.push_back(u);
                u->modes[UM_OPERATOR] = 1;
                u->oper.assign(opertype, 0, 512);