summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-01-09 20:05:11 -0500
committerAdam <Adam@anope.org>2011-01-09 20:05:11 -0500
commitf4d7ae2e1245c9421aee41229a1a20a56188c7b1 (patch)
tree9b0e4362cf864a6cd4be82daadcdff073d6bc108 /src
parent826e040d4193589d2d0d29499dcae2befa649c5e (diff)
Do not allow services opers to send one person more than 32767 memos
Diffstat (limited to 'src')
-rw-r--r--src/memoserv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/memoserv.c b/src/memoserv.c
index 8e33e6225..a5e3113bf 100644
--- a/src/memoserv.c
+++ b/src/memoserv.c
@@ -247,8 +247,8 @@ void memo_send(User * u, char *name, char *text, int z)
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_servoper) {
+ } else if (mi->memocount >= 32767 || (mi->memomax > 0 && mi->memocount >= mi->memomax
+ && !is_servoper)) {
if (z == 0 || z == 3)
notice_lang(s_MemoServ, u, MEMO_X_HAS_TOO_MANY_MEMOS, name);