diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-16 06:57:14 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-16 06:57:14 +0000 |
| commit | ff13d00eb50a228e05c4c37b0757082ca8bc9e4a (patch) | |
| tree | 9e3c000e91963de7c696bb3733fbb33a994a445b /src/memoserv.c | |
| parent | aaf1cefd1c34e08d68725d459cab02128daf72e6 (diff) | |
Removed c_userlist and u_chanlist, replaced with std::list
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2764 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/memoserv.c')
| -rw-r--r-- | src/memoserv.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/memoserv.c b/src/memoserv.c index 922d79bc6..81448becd 100644 --- a/src/memoserv.c +++ b/src/memoserv.c @@ -299,12 +299,14 @@ void memo_send(User * u, const char *name, const char *text, int z) if (nc->HasFlag(NI_MEMO_MAIL)) new_memo_mail(nc, m); } else { - struct c_userlist *cu, *next; Channel *c; - if (Config.MSNotifyAll && (c = findchan(name))) { - for (cu = c->users; cu; cu = next) { - next = cu->next; + if (Config.MSNotifyAll && (c = findchan(name))) + { + for (CUserList::iterator it = c->users.begin(); it != c->users.end(); ++it) + { + UserContainer *cu = *it; + if (check_access(cu->user, c->ci, CA_MEMO)) { if (cu->user->nc && (cu->user->nc->HasFlag(NI_MEMO_RECEIVE)) |
