summaryrefslogtreecommitdiff
path: root/src/mail.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-02-04 23:49:27 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-02-04 23:49:27 +0000
commit308070e01971b0cfaf77de20011f48ce4d6b5a1c (patch)
tree2bdfd84e35cf79eb20dc2a79ddd233789ca84fdf /src/mail.c
parent3d4cf39940144be19645a3a7cdecf95213b96f26 (diff)
We now store a list of users using a NickCore in the NickCore, this prevents having to loop every user all the time to find them
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2780 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/mail.c')
-rw-r--r--src/mail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail.c b/src/mail.c
index d901de457..87bab2558 100644
--- a/src/mail.c
+++ b/src/mail.c
@@ -91,7 +91,7 @@ MailInfo *MailBegin(User * u, NickCore * nc, char *subject, char *service)
notice_lang(service, u, MAIL_DISABLED);
} else if (((time(NULL) - u->lastmail < Config.MailDelay)
|| (time(NULL) - nc->lastmail < Config.MailDelay))
- && !(u->nc && u->nc->IsServicesOper())) {
+ && !(u->Account() && u->Account()->IsServicesOper())) {
notice_lang(service, u, MAIL_DELAYED, Config.MailDelay);
} else if (!nc->email) {
notice_lang(service, u, MAIL_INVALID, nc->display);