diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-30 01:04:13 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-30 01:04:13 +0000 |
commit | 6a9fa9f4d2ead592eb51a014491ce3aaee2029e8 (patch) | |
tree | 454479f2c8ef69a52e461416be42fd94d8b15955 /src/memoserv.c | |
parent | 5fc268b7509f20cbf1243b99f2669033b93db00e (diff) |
Rewrote all of the defcon code, and moved most of it to os_defcon. This fixes defcon to have the ability to use modes introduced to Anope at a later time than on startup (eg, from the IRCd), amongst other things
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2597 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/memoserv.c')
-rw-r--r-- | src/memoserv.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/memoserv.c b/src/memoserv.c index 8a508e552..64e7d831f 100644 --- a/src/memoserv.c +++ b/src/memoserv.c @@ -201,9 +201,6 @@ void memo_send(User * u, const char *name, const char *text, int z) if (readonly) { notice_lang(s_MemoServ, u, MEMO_SEND_DISABLED); - } else if (checkDefCon(DEFCON_NO_NEW_MEMOS)) { - notice_lang(s_MemoServ, u, OPER_DEFCON_DENIED); - return; } else if (!text) { if (z == 0) syntax_error(s_MemoServ, u, "SEND", MEMO_SEND_SYNTAX); @@ -388,7 +385,8 @@ void rsend_notify(User * u, Memo * m, const char *chan) const char *fmt; /* Only send receipt if memos are allowed */ - if ((!readonly) && (!checkDefCon(DEFCON_NO_NEW_MEMOS))) { + if ((!readonly)) + { /* Get nick alias for sender */ na = findnick(m->sender); |