]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/opertype.cpp
Add m_showfile, remove cmd_rules
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / opertype.cpp
index c3f9b633cf33da570d5b5491781d9794f4acb41e..6e5d473aa9adfc8ed872c7f1ed3143723e8d2e5f 100644 (file)
@@ -26,7 +26,7 @@
 /** Because the core won't let users or even SERVERS set +o,
  * we use the OPERTYPE command to do this.
  */
-CmdResult CommandOpertype::Handle(User* u, std::vector<std::string>& params)
+CmdResult CommandOpertype::HandleRemote(RemoteUser* u, std::vector<std::string>& params)
 {
        const std::string& opertype = params[0];
        if (!u->IsOper())
@@ -59,3 +59,8 @@ CmdResult CommandOpertype::Handle(User* u, std::vector<std::string>& params)
        return CMD_SUCCESS;
 }
 
+CommandOpertype::Builder::Builder(User* user)
+       : CmdBuilder(user, "OPERTYPE")
+{
+       push_last(user->oper->name);
+}