git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2474
e03df62e-2008-0410-955e-
edbf42e46eb7
{
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;
invites.push_back(i);
}
-void userrec::RemoveInvite(std::string &channel)
+void userrec::RemoveInvite(irc::string &channel)
{
log(DEBUG,"Removing invites");
if (invites.size())