summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoradam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-07-13 02:50:05 +0000
committeradam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-07-13 02:50:05 +0000
commit1873d67093bec728ce7851627786d06ab9d6d948 (patch)
tree522ad8df8bbcf5d7653718dcaf71784221c4601c /src
parent2629a580a1349f385f95070a123d4126efbd70a0 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/core/hs_set.c4
-rw-r--r--src/core/hs_setall.c4
-rw-r--r--src/core/ms_rsend.c2
3 files changed, 5 insertions, 5 deletions
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;
}