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_httpd_stats.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_httpd_stats.cpp')
| -rw-r--r-- | src/modules/m_httpd_stats.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp index 008c3f2cd..b160159fb 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -155,16 +155,16 @@ class ModuleHttpStats : public Module Channel* c = i->second; data << "<channel>"; - data << "<usercount>" << c->GetUsers()->size() << "</usercount><channelname>" << Sanitize(c->name) << "</channelname>"; + data << "<usercount>" << c->GetUsers().size() << "</usercount><channelname>" << Sanitize(c->name) << "</channelname>"; data << "<channeltopic>"; data << "<topictext>" << Sanitize(c->topic) << "</topictext>"; data << "<setby>" << Sanitize(c->setby) << "</setby>"; data << "<settime>" << c->topicset << "</settime>"; data << "</channeltopic>"; data << "<channelmodes>" << Sanitize(c->ChanModes(true)) << "</channelmodes>"; - const UserMembList* ulist = c->GetUsers(); - for (UserMembCIter x = ulist->begin(); x != ulist->end(); ++x) + const UserMembList& ulist = c->GetUsers(); + for (UserMembCIter x = ulist.begin(); x != ulist.end(); ++x) { Membership* memb = x->second; data << "<channelmember><uid>" << memb->user->uuid << "</uid><privs>" |
