diff options
author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-01-29 03:02:15 +0000 |
---|---|---|
committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-01-29 03:02:15 +0000 |
commit | 6fe351588f39d5b6d80f782be32a85ce32c23896 (patch) | |
tree | 168f913495dbe6dce3a449a01dcd49ac2e9e8b94 /src | |
parent | c8a8473bf610d06733c3966ad1306adb06e36b17 (diff) |
BUILD : 1.7.7 (560) BUGS : 290, 291 NOTES : Fixes HS HELP LIST, and improves on Robs fix for RSEND
git-svn-id: svn://svn.anope.org/anope/trunk@560 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@413 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/hostserv.c | 2 | ||||
-rw-r--r-- | src/memoserv.c | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/src/hostserv.c b/src/hostserv.c index 82bdb07ce..38ee8dea7 100644 --- a/src/hostserv.c +++ b/src/hostserv.c @@ -75,7 +75,7 @@ void moduleAddHostServCmds(void) -1, -1, -1); addCoreCommand(HOSTSERV, c); c = createCommand("LIST", listOut, is_services_oper, -1, - -1, HOST_HELP_LIST, -1, -1); + -1, HOST_HELP_LIST, HOST_HELP_LIST, HOST_HELP_LIST); addCoreCommand(HOSTSERV, c); } diff --git a/src/memoserv.c b/src/memoserv.c index d2fe3e874..479437aa7 100644 --- a/src/memoserv.c +++ b/src/memoserv.c @@ -1409,12 +1409,28 @@ static int do_rsend(User * u) NickAlias *na = NULL; int z = 3; + /* check if RSEND is usable first */ + if (!MSMemoReceipt) { + notice_lang(s_MemoServ, u, MEMO_RSEND_DISABLED); + return MOD_CONT; + } + + /* check if the variables are here */ + if (!name || !text) { + notice_lang(s_MemoServ, u, MEMO_RSEND_SYNTAX); + return MOD_CONT; + } + + /* prevent user from rsend to themselves */ if ((na = findnick(name))) { if (u->na) { if (stricmp(na->nc->display, u->na->nc->display) == 0) { notice_lang(s_MemoServ, u, MEMO_NO_RSEND_SELF); return MOD_CONT; } + } else { + notice_lang(s_MemoServ, u, NICK_X_NOT_REGISTERED, name); + return MOD_CONT; } } @@ -1430,6 +1446,10 @@ static int do_rsend(User * u) memo_send(u, name, text, z); } else { /* rsend has been disabled */ + if (debug) { + alog("debug: MSMemoReceipt is set misconfigured to %d", + MSMemoReceipt); + } notice_lang(s_MemoServ, u, MEMO_RSEND_DISABLED); } |