]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_zline.cpp
InspSocket -> BufferedSocket. Paves the way for a SimpleSocket class which ident...
[user/henk/code/inspircd.git] / src / cmd_zline.cpp
index 4436472087b8304fd3587e6eb9ddc1e59d82810a..a1d22e32adcbdff8986b03d0fd6d760ee6133f93 100644 (file)
  */
 
 #include "inspircd.h"
-#include "configreader.h"
-#include "users.h"
-#include "modules.h"
 #include "xline.h"
 #include "commands/cmd_zline.h"
 
 
 
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_zline(Instance);
 }
 
-CmdResult cmd_zline::Handle (const char** parameters, int pcnt, userrec *user)
+CmdResult cmd_zline::Handle (const char** parameters, int pcnt, User *user)
 {
        if (pcnt >= 3)
        {
@@ -57,6 +54,10 @@ CmdResult cmd_zline::Handle (const char** parameters, int pcnt, userrec *user)
                        }
                        ServerInstance->XLines->apply_lines(to_apply);
                }
+               else
+               {
+                       user->WriteServ("NOTICE %s :*** Z-Line for %s already exists",user->nick,parameters[0]);
+               }
        }
        else
        {