diff options
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | src/hostserv.c | 2 | ||||
-rw-r--r-- | src/memoserv.c | 20 | ||||
-rw-r--r-- | version.log | 6 |
4 files changed, 27 insertions, 2 deletions
@@ -6,6 +6,7 @@ Provided by Anope Dev. <dev@anope.org> - 2005 01/19 A Add simple smtp client, read the README in src/tools for info [ #00] 01/16 A Support for PTlinks VHOST (NEWMASK) command. [ #00] 01/16 A Ulines Servers are now except from NOJOIN bans [#281] +01/29 F Fixes help for HS HELP LIST [#290] 01/29 F Memoserv rsend issue [#291] 01/23 F Fixed u_char warnings under OpenBSD. [ #00] 01/23 F anope_cmd_ctcp() fixed it was setup wrong. [ #00] 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); } diff --git a/version.log b/version.log index 67f824e89..cf7c474ae 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="7" -VERSION_BUILD="559" +VERSION_BUILD="560" # $Log$ # +# BUILD : 1.7.7 (560) +# BUGS : 290, 291 +# NOTES : Fixes HS HELP LIST, and improves on Robs fix for RSEND +# # BUILD : 1.7.7 (559) # BUGS : 291 # NOTES : Fixed memoserv issue :) |