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_hostcycle.cpp | |
| parent | core_hostname_lookup Change source of log messages to MODNAME (diff) | |
| download | inspircd++-173bc63cb59bbf19e73d1b823e3e9423c9f79860.tar.gz inspircd++-173bc63cb59bbf19e73d1b823e3e9423c9f79860.tar.bz2 inspircd++-173bc63cb59bbf19e73d1b823e3e9423c9f79860.zip | |
Change return type of Channel::GetUsers() to reference from pointer as it is never NULL
Diffstat (limited to 'src/modules/m_hostcycle.cpp')
| -rw-r--r-- | src/modules/m_hostcycle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_hostcycle.cpp b/src/modules/m_hostcycle.cpp index d3646e899..87f05a9ee 100644 --- a/src/modules/m_hostcycle.cpp +++ b/src/modules/m_hostcycle.cpp @@ -72,8 +72,8 @@ class ModuleHostCycle : public Module modeline.append(" ").append(user->nick); } - const UserMembList* ulist = c->GetUsers(); - for (UserMembList::const_iterator j = ulist->begin(); j != ulist->end(); ++j) + const UserMembList& ulist = c->GetUsers(); + for (UserMembList::const_iterator j = ulist.begin(); j != ulist.end(); ++j) { LocalUser* u = IS_LOCAL(j->first); if (u == NULL || u == user) |
