From: brain Date: Thu, 15 Dec 2005 13:55:15 +0000 (+0000) Subject: Rar! X-Git-Tag: v2.0.23~9599 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=b87f7d186ca9dd583fb2b629352a5b2f38589e6c;p=user%2Fhenk%2Fcode%2Finspircd.git Rar! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2474 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/users.cpp b/src/users.cpp index 06c34955e..5afed6fe1 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -98,13 +98,10 @@ bool userrec::IsInvited(irc::string &channel) { for (InvitedList::iterator i = invites.begin(); i != invites.end(); i++) { - if (i->channel) + irc::string compare = i->channel; + if (compare == channel) { - irc::string compare = i->channel; - if (compare == channel) - { - return true; - } + return true; } } return false; @@ -122,7 +119,7 @@ void userrec::InviteTo(irc::string &channel) invites.push_back(i); } -void userrec::RemoveInvite(std::string &channel) +void userrec::RemoveInvite(irc::string &channel) { log(DEBUG,"Removing invites"); if (invites.size())