X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmessage.cpp;h=29a4ae9985d07539300c1ce2e00c3d054fa9b761;hb=bb81e1a5f38b1d6487e53aa5ac69ca7ced9f6562;hp=042901503984dd6006216710648fb21df8fe07c6;hpb=c330b24501fc56516fef098428889a0a526e706a;p=user%2Fhenk%2Fcode%2Finspircd.git 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))) {