]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_links.cpp
Add <options:cyclehosts> which allows a user to appear to have quit when their host...
[user/henk/code/inspircd.git] / src / cmd_links.cpp
index 07f06e455d497e28228b8386f71f3773088e054d..1c61b0e70bdee8eccb184d55b067f125d39d5202 100644 (file)
@@ -1,4 +1,4 @@
-u/*       +------------------------------------+
+/*       +------------------------------------+
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
@@ -19,13 +19,13 @@ u/*       +------------------------------------+
 #include "users.h"
 #include "modules.h"
 #include "commands.h"
-#include "helperfuncs.h"
+
 #include "commands/cmd_links.h"
 
-extern ServerConfig* Config;
 
-void cmd_links::Handle (char **parameters, int pcnt, userrec *user)
+
+void cmd_links::Handle (const char** parameters, int pcnt, userrec *user)
 {
-       WriteServ(user->fd,"364 %s %s %s :0 %s",user->nick,Config->ServerName,Config->ServerName,Config->ServerDesc);
-       WriteServ(user->fd,"365 %s * :End of /LINKS list.",user->nick);
+       user->WriteServ("364 %s %s %s :0 %s",user->nick,ServerInstance->Config->ServerName,ServerInstance->Config->ServerName,ServerInstance->Config->ServerDesc);
+       user->WriteServ("365 %s * :End of /LINKS list.",user->nick);
 }