From b496e60eb0d18fd4608bf2f75cacfbb994d4a40a Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Tue, 10 Feb 2009 16:56:24 +0000 Subject: Fix compile errors in hs_* modules, as well as add some const-safeness to HostServ functions. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1980 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/hs_del.c | 2 +- src/core/hs_delall.c | 4 ++-- src/core/hs_set.c | 2 +- src/core/hs_setall.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core') diff --git a/src/core/hs_del.c b/src/core/hs_del.c index 15f218088..1057a4d5e 100644 --- a/src/core/hs_del.c +++ b/src/core/hs_del.c @@ -55,7 +55,7 @@ class CommandHSDel : public Command void OnSyntaxError(User *u) { - syntax_error(s_HostServ, u, "DEL", HOST_DEL_SYNTAX, s_HostServ); + syntax_error(s_HostServ, u, "DEL", HOST_DEL_SYNTAX); } }; diff --git a/src/core/hs_delall.c b/src/core/hs_delall.c index 5976100d2..2c749f2a2 100644 --- a/src/core/hs_delall.c +++ b/src/core/hs_delall.c @@ -56,13 +56,13 @@ class CommandHSDelAll : public Command if (!is_host_remover(u)) return false; - notice_lang(s_HostServ, u, HOST_HELP_ALL); + notice_lang(s_HostServ, u, HOST_HELP_DELALL); return true; } void OnSyntaxError(User *u) { - syntax_error(s_HostServ, u, "DELALL", HOST_DELALL_SYNTAX, s_HostServ); + syntax_error(s_HostServ, u, "DELALL", HOST_DELALL_SYNTAX); } }; diff --git a/src/core/hs_set.c b/src/core/hs_set.c index 10a717ae5..6364086ce 100644 --- a/src/core/hs_set.c +++ b/src/core/hs_set.c @@ -152,7 +152,7 @@ class CommandHSSet : public Command void OnSyntaxError(User *u) { - syntax_error(s_HostServ, u, "SET", HOST_SET_SYNTAX, s_HostServ); + syntax_error(s_HostServ, u, "SET", HOST_SET_SYNTAX); } }; diff --git a/src/core/hs_setall.c b/src/core/hs_setall.c index df069101e..2567126fe 100644 --- a/src/core/hs_setall.c +++ b/src/core/hs_setall.c @@ -152,7 +152,7 @@ class CommandHSSetAll : public Command void OnSyntaxError(User *u) { - syntax_error(s_HostServ, u, "SETALL", HOST_SETALL_SYNTAX, s_HostServ); + syntax_error(s_HostServ, u, "SETALL", HOST_SETALL_SYNTAX); } }; -- cgit