]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Rar!
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 15 Dec 2005 13:55:15 +0000 (13:55 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 15 Dec 2005 13:55:15 +0000 (13:55 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2474 e03df62e-2008-0410-955e-edbf42e46eb7

src/users.cpp

index 06c34955e2035557b14cb5882ccb83efcc53967d..5afed6fe14b5395871bba8ad7b4aa5669a048e0f 100644 (file)
@@ -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())