aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_ircv3.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_ircv3.cpp
parentcore_hostname_lookup Change source of log messages to MODNAME (diff)
downloadinspircd++-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_ircv3.cpp')
-rw-r--r--src/modules/m_ircv3.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_ircv3.cpp b/src/modules/m_ircv3.cpp
index 5cb2ab6b1..17572423d 100644
--- a/src/modules/m_ircv3.cpp
+++ b/src/modules/m_ircv3.cpp
@@ -50,8 +50,8 @@ class ModuleIRCv3 : public Module
std::set<User*> already_sent;
for (IncludeChanList::const_iterator i = chans.begin(); i != chans.end(); ++i)
{
- const UserMembList* userlist = (*i)->chan->GetUsers();
- for (UserMembList::const_iterator m = userlist->begin(); m != userlist->end(); ++m)
+ const UserMembList& userlist = (*i)->chan->GetUsers();
+ for (UserMembList::const_iterator m = userlist.begin(); m != userlist.end(); ++m)
{
/*
* Send the line if the channel member in question meets all of the following criteria:
@@ -134,8 +134,8 @@ class ModuleIRCv3 : public Module
std::string line;
std::string mode;
- const UserMembList* userlist = memb->chan->GetUsers();
- for (UserMembCIter it = userlist->begin(); it != userlist->end(); ++it)
+ const UserMembList& userlist = memb->chan->GetUsers();
+ for (UserMembCIter it = userlist.begin(); it != userlist.end(); ++it)
{
// Send the extended join line if the current member is local, has the extended-join cap and isn't excepted
User* member = IS_LOCAL(it->first);
@@ -208,8 +208,8 @@ class ModuleIRCv3 : public Module
std::string line = ":" + memb->user->GetFullHost() + " AWAY :" + memb->user->awaymsg;
- const UserMembList* userlist = memb->chan->GetUsers();
- for (UserMembCIter it = userlist->begin(); it != userlist->end(); ++it)
+ const UserMembList& userlist = memb->chan->GetUsers();
+ for (UserMembCIter it = userlist.begin(); it != userlist.end(); ++it)
{
// Send the away notify line if the current member is local, has the away-notify cap and isn't excepted
User* member = IS_LOCAL(it->first);