summaryrefslogtreecommitdiff
path: root/src/modules/m_delaymsg.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_delaymsg.cpp
parent7045a0d4ce7b4f2752c5496851a6319ea04137b6 (diff)
Change return type of Channel::GetUsers() to reference from pointer as it is never NULL
Diffstat (limited to 'src/modules/m_delaymsg.cpp')
-rw-r--r--src/modules/m_delaymsg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_delaymsg.cpp b/src/modules/m_delaymsg.cpp
index 1730663c5..3384e1107 100644
--- a/src/modules/m_delaymsg.cpp
+++ b/src/modules/m_delaymsg.cpp
@@ -73,8 +73,8 @@ void DelayMsgMode::OnUnset(User* source, Channel* chan)
/*
* Clean up metadata
*/
- const UserMembList* names = chan->GetUsers();
- for (UserMembCIter n = names->begin(); n != names->end(); ++n)
+ const UserMembList& users = chan->GetUsers();
+ for (UserMembCIter n = users.begin(); n != users.end(); ++n)
jointime.set(n->second, 0);
}