From b87f7d186ca9dd583fb2b629352a5b2f38589e6c Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 15 Dec 2005 13:55:15 +0000 Subject: Rar! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2474 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/users.cpp') 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()) -- cgit v1.2.3