diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-15 13:55:15 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-15 13:55:15 +0000 |
commit | b87f7d186ca9dd583fb2b629352a5b2f38589e6c (patch) | |
tree | b5bce993ab0a22a059ca29fe3de5b93ff7c6803c /src/users.cpp | |
parent | 866cfdb91e85fe7350814524a40eeece01402ab1 (diff) |
Rar!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2474 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
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()) |