diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hs_set.c | 4 | ||||
-rw-r--r-- | src/core/hs_setall.c | 4 | ||||
-rw-r--r-- | src/core/ms_rsend.c | 2 |
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; } |