From 1873d67093bec728ce7851627786d06ab9d6d948 Mon Sep 17 00:00:00 2001 From: adam- Date: Mon, 13 Jul 2009 02:50:05 +0000 Subject: Fix some syntax error replies to use syntax_error git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2378 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/hs_set.c | 4 ++-- src/core/hs_setall.c | 4 ++-- src/core/ms_rsend.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/core/hs_set.c b/src/core/hs_set.c index 2475a2999..b789413cd 100644 --- a/src/core/hs_set.c +++ b/src/core/hs_set.c @@ -80,7 +80,7 @@ int myDoSet(User * u) char *vIdent = NULL; if (!nick || !rawhostmask) { - notice_lang(s_HostServ, u, HOST_SET_SYNTAX, s_HostServ); + syntax_error(s_HostServ, u, "SET", HOST_SET_SYNTAX); free(hostmask); return MOD_CONT; } @@ -89,7 +89,7 @@ int myDoSet(User * u) if (vIdent) { rawhostmask = myStrGetTokenRemainder(rawhostmask, '@', 1); /* get the remaining string */ if (!rawhostmask) { - notice_lang(s_HostServ, u, HOST_SET_SYNTAX, s_HostServ); + syntax_error(s_HostServ, u, "SET", HOST_SET_SYNTAX); free(vIdent); free(hostmask); return MOD_CONT; diff --git a/src/core/hs_setall.c b/src/core/hs_setall.c index 70944bee5..5d42b2b9c 100644 --- a/src/core/hs_setall.c +++ b/src/core/hs_setall.c @@ -82,7 +82,7 @@ int do_setall(User * u) char *vIdent = NULL; if (!nick || !rawhostmask) { - notice_lang(s_HostServ, u, HOST_SETALL_SYNTAX, s_HostServ); + syntax_error(s_HostServ, u, "SETALL", HOST_SETALL_SYNTAX); free(hostmask); return MOD_CONT; } @@ -91,7 +91,7 @@ int do_setall(User * u) if (vIdent) { rawhostmask = myStrGetTokenRemainder(rawhostmask, '@', 1); /* get the remaining string */ if (!rawhostmask) { - notice_lang(s_HostServ, u, HOST_SETALL_SYNTAX, s_HostServ); + syntax_error(s_HostServ, u, "SETALL", HOST_SETALL_SYNTAX); free(vIdent); free(hostmask); return MOD_CONT; diff --git a/src/core/ms_rsend.c b/src/core/ms_rsend.c index fc7642d1e..b659d2df5 100644 --- a/src/core/ms_rsend.c +++ b/src/core/ms_rsend.c @@ -82,7 +82,7 @@ int do_rsend(User * u) /* check if the variables are here */ if (!name || !text) { - notice_lang(s_MemoServ, u, MEMO_RSEND_SYNTAX); + syntax_error(s_MemoServ, u, "RSEND", MEMO_RSEND_SYNTAX); return MOD_CONT; } -- cgit