summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-06-04 14:13:48 +0000
committercertus certus@31f1291d-b8d6-0310-a050-a5561fc1590b <certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-06-04 14:13:48 +0000
commitfafff9c13c2b7024c0e50f6eb01a59fc9c6e34bc (patch)
treea5f98edabfd871e1de47339789f6d48542755535
parentb72b59a4fb5eeec61da676d9fecb315905f9cad3 (diff)
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
-rw-r--r--Changes1
-rw-r--r--memoserv.c8
-rw-r--r--version.log7
3 files changed, 11 insertions, 5 deletions
diff --git a/Changes b/Changes
index 0f6aaf4f5..4d8b75810 100644
--- a/Changes
+++ b/Changes
@@ -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]
diff --git a/memoserv.c b/memoserv.c
index 889a0759e..476f03311 100644
--- a/memoserv.c
+++ b/memoserv.c
@@ -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);
diff --git a/version.log b/version.log
index e4c7dc2ee..ed8ba27f8 100644
--- a/version.log
+++ b/version.log
@@ -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 :