summaryrefslogtreecommitdiff
path: root/src/modules/m_watch.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-11 10:26:18 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-11 10:26:18 +0000
commit4798f98adad084cf9e207cc7b32d7e4370e9cc90 (patch)
tree97c98887415f3ec339212b3d179664ba11fb3a48 /src/modules/m_watch.cpp
parent25c8c8ba0247236f660bbbbfc665ae735f88fc31 (diff)
Last of the -Wshadow fixes.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8894 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_watch.cpp')
-rw-r--r--src/modules/m_watch.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp
index 669f76b53..5f93bd9cb 100644
--- a/src/modules/m_watch.cpp
+++ b/src/modules/m_watch.cpp
@@ -118,10 +118,10 @@ class CommandWatch : public Command
if (x != whos_watching_me->end())
{
/* People are watching this user, am i one of them? */
- std::deque<User*>::iterator n = std::find(x->second.begin(), x->second.end(), user);
- if (n != x->second.end())
+ std::deque<User*>::iterator n2 = std::find(x->second.begin(), x->second.end(), user);
+ if (n2 != x->second.end())
/* I'm no longer watching you... */
- x->second.erase(n);
+ x->second.erase(n2);
if (!x->second.size())
whos_watching_me->erase(nick);
@@ -231,16 +231,16 @@ class CommandWatch : public Command
{
for (watchlist::iterator i = wl->begin(); i != wl->end(); i++)
{
- watchentries::iterator x = whos_watching_me->find(i->first);
- if (x != whos_watching_me->end())
+ watchentries::iterator i2 = whos_watching_me->find(i->first);
+ if (i2 != whos_watching_me->end())
{
/* People are watching this user, am i one of them? */
- std::deque<User*>::iterator n = std::find(x->second.begin(), x->second.end(), user);
- if (n != x->second.end())
+ std::deque<User*>::iterator n = std::find(i2->second.begin(), i2->second.end(), user);
+ if (n != i2->second.end())
/* I'm no longer watching you... */
- x->second.erase(n);
+ i2->second.erase(n);
- if (!x->second.size())
+ if (!i2->second.size())
whos_watching_me->erase(user->nick);
}
}
@@ -278,9 +278,9 @@ class CommandWatch : public Command
you_have = wl->size();
}
- watchentries::iterator x = whos_watching_me->find(user->nick);
- if (x != whos_watching_me->end())
- youre_on = x->second.size();
+ watchentries::iterator i2 = whos_watching_me->find(user->nick);
+ if (i2 != whos_watching_me->end())
+ youre_on = i2->second.size();
user->WriteServ("603 %s :You have %d and are on %d WATCH entries", user->nick, you_have, youre_on);
user->WriteServ("606 %s :%s",user->nick, list.c_str());
@@ -353,16 +353,16 @@ class Modulewatch : public Module
/* Iterate every user on my watch list, and take me out of the whos_watching_me map for each one we're watching */
for (watchlist::iterator i = wl->begin(); i != wl->end(); i++)
{
- watchentries::iterator x = whos_watching_me->find(i->first);
- if (x != whos_watching_me->end())
+ watchentries::iterator i2 = whos_watching_me->find(i->first);
+ if (i2 != whos_watching_me->end())
{
/* People are watching this user, am i one of them? */
- std::deque<User*>::iterator n = std::find(x->second.begin(), x->second.end(), user);
- if (n != x->second.end())
+ std::deque<User*>::iterator n = std::find(i2->second.begin(), i2->second.end(), user);
+ if (n != i2->second.end())
/* I'm no longer watching you... */
- x->second.erase(n);
+ i2->second.erase(n);
- if (!x->second.size())
+ if (!i2->second.size())
whos_watching_me->erase(user->nick);
}
}