From bff75471cfdb7bb5bdc57c0c879117c38a977650 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 9 Mar 2006 15:34:19 +0000 Subject: 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 --- src/message.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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::const_iterator i = u->chans.begin(); i != u->chans.end(); i++) { - for (std::vector::const_iterator z = u2->chans.begin(); i != u2->chans.end(); z++) + for (std::vector::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))) { -- cgit v1.2.3