diff options
| author | 2014-07-14 16:04:38 +0200 | |
|---|---|---|
| committer | 2014-07-14 16:04:38 +0200 | |
| commit | 173bc63cb59bbf19e73d1b823e3e9423c9f79860 (patch) | |
| tree | 7af13bf029e8f5c7d2792de0e55c2b1168c549fb /src/modules/m_auditorium.cpp | |
| parent | core_hostname_lookup Change source of log messages to MODNAME (diff) | |
Change return type of Channel::GetUsers() to reference from pointer as it is never NULL
Diffstat (limited to 'src/modules/m_auditorium.cpp')
| -rw-r--r-- | src/modules/m_auditorium.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp index 60bdd2582..40226d002 100644 --- a/src/modules/m_auditorium.cpp +++ b/src/modules/m_auditorium.cpp @@ -103,8 +103,8 @@ class ModuleAuditorium : public Module if (IsVisible(memb)) return; - const UserMembList* users = memb->chan->GetUsers(); - for(UserMembCIter i = users->begin(); i != users->end(); i++) + const UserMembList& users = memb->chan->GetUsers(); + for (UserMembCIter i = users.begin(); i != users.end(); ++i) { if (IS_LOCAL(i->first) && !CanSee(i->first, memb)) excepts.insert(i->first); @@ -140,8 +140,8 @@ class ModuleAuditorium : public Module // this channel should not be considered when listing my neighbors i = include.erase(i); // however, that might hide me from ops that can see me... - const UserMembList* users = memb->chan->GetUsers(); - for(UserMembCIter j = users->begin(); j != users->end(); j++) + const UserMembList& users = memb->chan->GetUsers(); + for(UserMembCIter j = users.begin(); j != users.end(); ++j) { if (IS_LOCAL(j->first) && CanSee(j->first, memb)) exception[j->first] = true; |
