aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_channames.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-07-14 16:04:38 +0200
committerGravatar Attila Molnar2014-07-14 16:04:38 +0200
commit173bc63cb59bbf19e73d1b823e3e9423c9f79860 (patch)
tree7af13bf029e8f5c7d2792de0e55c2b1168c549fb /src/modules/m_channames.cpp
parentcore_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_channames.cpp')
-rw-r--r--src/modules/m_channames.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_channames.cpp b/src/modules/m_channames.cpp
index 3a27cab73..1eb080ada 100644
--- a/src/modules/m_channames.cpp
+++ b/src/modules/m_channames.cpp
@@ -132,8 +132,8 @@ class ModuleChannelNames : public Module
{
if (badchan)
{
- 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 (i->first != memb->user)
except_list.insert(i->first);
}