summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-09 15:34:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-09 15:34:19 +0000
commitbff75471cfdb7bb5bdc57c0c879117c38a977650 (patch)
tree5b25d46a46dad46c48766f0fa6cc4667cc21e639
parentf5defd93b72e5467e2cb899a63d1695601e41673 (diff)
Segfault-causing typo (wrong var used for a loop, whoops)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3595 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/message.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message.cpp b/src/message.cpp
index 042901503..29a4ae998 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -63,11 +63,11 @@ int common_channels(userrec *u, userrec *u2)
}
for (std::vector<ucrec*>::const_iterator i = u->chans.begin(); i != u->chans.end(); i++)
{
- for (std::vector<ucrec*>::const_iterator z = u2->chans.begin(); i != u2->chans.end(); z++)
+ for (std::vector<ucrec*>::const_iterator z = u2->chans.begin(); z != u2->chans.end(); z++)
{
if ((((ucrec*)(*i))->channel != NULL) && (((ucrec*)(*z))->channel != NULL))
{
- if ((((ucrec*)(*i))->channel == ((ucrec*)(*z))->channel) && (((ucrec*)(*i))->channel) && (((ucrec*)(*z))->channel))
+ if ((((ucrec*)(*i))->channel == ((ucrec*)(*z))->channel))
{
if ((c_count(u)) && (c_count(u2)))
{