]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_invite.cpp
This fixes a deletion error here, we were using new[] and not using delete[], but...
[user/henk/code/inspircd.git] / src / cmd_invite.cpp
index 72902998c15c4b974b89206b8e570c39a86b8bf8..74ac7ea2c0a3ed81b58de2eba70bb18d12679a72 100644 (file)
@@ -12,9 +12,6 @@
  */
 
 #include "inspircd.h"
-#include "configreader.h"
-#include "users.h"
-#include "modules.h"
 #include "commands/cmd_invite.h"
 
 extern "C" DllExport command_t* init_command(InspIRCd* Instance)
@@ -51,7 +48,7 @@ CmdResult cmd_invite::Handle (const char** parameters, int pcnt, userrec *user)
                {
                        if (c->GetStatus(user) < STATUS_HOP)
                        {
-                               user->WriteServ("482 %s %s :You must be at least a half-operator to change modes on this channel",user->nick, c->name);
+                               user->WriteServ("482 %s %s :You must be a channel %soperator", user->nick, c->name, c->GetStatus(u) == STATUS_HOP ? "" : "half-");
                                return CMD_FAILURE;
                        }
                }