summaryrefslogtreecommitdiff
path: root/src/modules/m_check.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-14 16:04:38 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-14 16:04:38 +0200
commit173bc63cb59bbf19e73d1b823e3e9423c9f79860 (patch)
tree7af13bf029e8f5c7d2792de0e55c2b1168c549fb /src/modules/m_check.cpp
parent7045a0d4ce7b4f2752c5496851a6319ea04137b6 (diff)
Change return type of Channel::GetUsers() to reference from pointer as it is never NULL
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r--src/modules/m_check.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index 35901f8d5..a2c0b2e2c 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -224,10 +224,10 @@ class CommandCheck : public Command
/* now the ugly bit, spool current members of a channel. :| */
- const UserMembList *ulist= targchan->GetUsers();
+ const UserMembList& ulist = targchan->GetUsers();
/* note that unlike /names, we do NOT check +i vs in the channel */
- for (UserMembCIter i = ulist->begin(); i != ulist->end(); i++)
+ for (UserMembCIter i = ulist.begin(); i != ulist.end(); ++i)
{
/*
* Unlike Asuka, I define a clone as coming from the same host. --w00t