summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-14 16:24:59 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-14 16:24:59 +0200
commit46c97a8db770d637cf8e11fa8b178a32c60cdada (patch)
tree4022e05800efba2dd0a31b6363eed0f0bf065671 /src/modules
parent63601e946e77f11835cf9cbb87c55fe41e0b12bb (diff)
Rename UserChanList to User::ChanList, remove UCListIter
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_channelban.cpp2
-rw-r--r--src/modules/m_check.cpp2
-rw-r--r--src/modules/m_nickflood.cpp4
-rw-r--r--src/modules/m_nonicks.cpp2
-rw-r--r--src/modules/m_operprefix.cpp2
-rw-r--r--src/modules/m_spanningtree/main.cpp2
6 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/m_channelban.cpp b/src/modules/m_channelban.cpp
index 300caa123..4d3f80e36 100644
--- a/src/modules/m_channelban.cpp
+++ b/src/modules/m_channelban.cpp
@@ -40,7 +40,7 @@ class ModuleBadChannelExtban : public Module
rm = mask.substr(3);
status = mh->GetModeChar();
}
- for (UCListIter i = user->chans.begin(); i != user->chans.end(); i++)
+ for (User::ChanList::iterator i = user->chans.begin(); i != user->chans.end(); i++)
{
if (InspIRCd::Match((*i)->chan->name, rm))
{
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index 75c6a4399..cbdb1d528 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -190,7 +190,7 @@ class CommandCheck : public Command
else
user->SendText(checkstr + " onip " + targuser->GetIPString());
- for (UCListIter i = targuser->chans.begin(); i != targuser->chans.end(); i++)
+ for (User::ChanList::iterator i = targuser->chans.begin(); i != targuser->chans.end(); i++)
{
Membership* memb = *i;
Channel* c = memb->chan;
diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp
index cd1bddce4..cade0b1db 100644
--- a/src/modules/m_nickflood.cpp
+++ b/src/modules/m_nickflood.cpp
@@ -128,7 +128,7 @@ class ModuleNickFlood : public Module
ModResult OnUserPreNick(LocalUser* user, const std::string& newnick) CXX11_OVERRIDE
{
- for (UCListIter i = user->chans.begin(); i != user->chans.end(); i++)
+ for (User::ChanList::iterator i = user->chans.begin(); i != user->chans.end(); i++)
{
Channel* channel = (*i)->chan;
ModResult res;
@@ -167,7 +167,7 @@ class ModuleNickFlood : public Module
if (isdigit(user->nick[0])) /* allow switches to UID */
return;
- for (UCListIter i = user->chans.begin(); i != user->chans.end(); ++i)
+ for (User::ChanList::iterator i = user->chans.begin(); i != user->chans.end(); ++i)
{
Channel* channel = (*i)->chan;
ModResult res;
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp
index 5a45bbb4a..63815f2bf 100644
--- a/src/modules/m_nonicks.cpp
+++ b/src/modules/m_nonicks.cpp
@@ -48,7 +48,7 @@ class ModuleNoNickChange : public Module
ModResult OnUserPreNick(LocalUser* user, const std::string& newnick) CXX11_OVERRIDE
{
- for (UCListIter i = user->chans.begin(); i != user->chans.end(); i++)
+ for (User::ChanList::iterator i = user->chans.begin(); i != user->chans.end(); i++)
{
Channel* curr = (*i)->chan;
diff --git a/src/modules/m_operprefix.cpp b/src/modules/m_operprefix.cpp
index 3bf4c8434..3f05dd086 100644
--- a/src/modules/m_operprefix.cpp
+++ b/src/modules/m_operprefix.cpp
@@ -79,7 +79,7 @@ class ModuleOperPrefixMode : public Module
modechange.push_back(add ? "+" : "-");
modechange[1].push_back(opm.GetModeChar());
modechange.push_back(user->nick);
- for (UCListIter v = user->chans.begin(); v != user->chans.end(); v++)
+ for (User::ChanList::iterator v = user->chans.begin(); v != user->chans.end(); v++)
{
modechange[0] = (*v)->chan->name;
ServerInstance->Modes->Process(modechange, ServerInstance->FakeClient);
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index e10781198..3393539cc 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -72,7 +72,7 @@ namespace
for (LocalUserList::iterator i = list.begin(); i != list.end(); ++i)
{
LocalUser* user = *i;
- for (UCListIter j = user->chans.begin(); j != user->chans.end(); ++j)
+ for (User::ChanList::iterator j = user->chans.begin(); j != user->chans.end(); ++j)
(*j)->id = 0;
}
}