summaryrefslogtreecommitdiff
path: root/memoserv.c
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 /memoserv.c
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
Diffstat (limited to 'memoserv.c')
-rw-r--r--memoserv.c8
1 files changed, 4 insertions, 4 deletions
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);