mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
BUILD : 1.7.3 (166) BUGS : #84 NOTES : MemoServ send limit does no longer apply for services operators. That fixed the problem with /MS STAFF for services ops (they got the "memo limit in time X reached" message).
git-svn-id: svn://svn.anope.org/anope/trunk@166 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@115 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
b72b59a4fb
commit
fafff9c13c
@@ -6,6 +6,7 @@ Provided by Anope Dev. <dev@anope.org> - 2004
|
||||
05/24 A New NSNickTracking directive to provide nick tracking. [ #71]
|
||||
05/21 A Auto enforce upon AKICK addition. [ #63]
|
||||
05/21 A New file docs/OLDCHANGES contains all change history. [ #65]
|
||||
06/04 F MemoServ send limit does no longer apply for services operators. [ #84]
|
||||
05/28 F Fixed botserv bug with HAS_EXCEPTION (chmode +e). [ #80]
|
||||
06/03 F Reversed pthread library detection order on ./configure script. [ #67]
|
||||
06/02 F Fixed bug where people who set memoserv notify off were notified. [ #79]
|
||||
|
||||
+4
-4
@@ -265,7 +265,7 @@ void memo_send(User * u, char *name, char *text, int z)
|
||||
MemoInfo *mi;
|
||||
time_t now = time(NULL);
|
||||
char *source = u->na->nc->display;
|
||||
int is_servadmin = is_services_admin(u);
|
||||
int is_servoper = is_services_oper(u);
|
||||
int j;
|
||||
|
||||
if (readonly) {
|
||||
@@ -291,7 +291,7 @@ void memo_send(User * u, char *name, char *text, int z)
|
||||
NICK_X_NOT_REGISTERED, name);
|
||||
|
||||
} else if (z != 2 && MSSendDelay > 0 &&
|
||||
u && u->lastmemosend + MSSendDelay > now && !is_servadmin) {
|
||||
u && u->lastmemosend + MSSendDelay > now && !is_servoper) {
|
||||
u->lastmemosend = now;
|
||||
if (z == 0)
|
||||
notice_lang(s_MemoServ, u, MEMO_SEND_PLEASE_WAIT, MSSendDelay);
|
||||
@@ -300,12 +300,12 @@ void memo_send(User * u, char *name, char *text, int z)
|
||||
notice_lang(s_MemoServ, u, MEMO_RSEND_PLEASE_WAIT,
|
||||
MSSendDelay);
|
||||
|
||||
} else if (mi->memomax == 0 && !is_servadmin) {
|
||||
} else if (mi->memomax == 0 && !is_servoper) {
|
||||
if (z == 0 || z == 3)
|
||||
notice_lang(s_MemoServ, u, MEMO_X_GETS_NO_MEMOS, name);
|
||||
|
||||
} else if (mi->memomax > 0 && mi->memocount >= mi->memomax
|
||||
&& !is_servadmin) {
|
||||
&& !is_servop) {
|
||||
if (z == 0 || z == 3)
|
||||
notice_lang(s_MemoServ, u, MEMO_X_HAS_TOO_MANY_MEMOS, name);
|
||||
|
||||
|
||||
+6
-1
@@ -8,10 +8,15 @@
|
||||
VERSION_MAJOR="1"
|
||||
VERSION_MINOR="7"
|
||||
VERSION_PATCH="3"
|
||||
VERSION_BUILD="165"
|
||||
VERSION_BUILD="166"
|
||||
|
||||
# $Log$
|
||||
#
|
||||
# BUILD : 1.7.3 (166)
|
||||
# BUGS : #84
|
||||
# NOTES : MemoServ send limit does no longer apply for services operators. That fixed the problem with /MS STAFF for services
|
||||
# ops (they got the "memo limit in time X reached" message).
|
||||
#
|
||||
# BUILD : 1.7.3 (165)
|
||||
# BUGS :
|
||||
# NOTES :
|
||||
|
||||
Reference in New Issue
Block a user