]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_nick.cpp
Put back different stats numerics for /stats g, /stats k etc
[user/henk/code/inspircd.git] / src / commands / cmd_nick.cpp
index 52e562d0279a4e40456adad3bb1c83d64d56ed4f..06fc5dcc35bf3fbce6905a4e9306b4f26be57a1b 100644 (file)
@@ -25,7 +25,7 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance)
  * for the client introduction code in here, youre in the wrong place.
  * You need to look in the spanningtree module for this!
  */
-CmdResult CommandNick::Handle (const char** parameters, int pcnt, User *user)
+CmdResult CommandNick::Handle (const char** parameters, int, User *user)
 {
        char oldnick[NICKMAX];
 
@@ -60,7 +60,7 @@ CmdResult CommandNick::Handle (const char** parameters, int pcnt, User *user)
        }
        else
        {
-               QLine* mq = ServerInstance->XLines->matches_qline(parameters[0]);
+               XLine* mq = ServerInstance->XLines->MatchesLine("Q",parameters[0]);
                if (mq)
                {
                        ServerInstance->SNO->WriteToSnoMask('x', "Q-Lined nickname %s from %s!%s@%s: %s", parameters[0], user->nick, user->ident, user->host, mq->reason);
@@ -161,7 +161,7 @@ CmdResult CommandNick::Handle (const char** parameters, int pcnt, User *user)
 
 }
 
-CmdResult CommandNick::HandleInternal(const unsigned int id, const std::deque<classbase*> &parameters)
+CmdResult CommandNick::HandleInternal(const unsigned int id, const std::deque<classbase*>&)
 {
        allowinvalid = (id != 0);
        return CMD_SUCCESS;