mirror of
https://github.com/anope/anope.git
synced 2026-06-26 05:06:37 +02:00
Use the same object for chanusercontainer and userchancontainer
This commit is contained in:
+2
-2
@@ -726,9 +726,9 @@ Anope::string User::GetModes() const
|
||||
return ret;
|
||||
}
|
||||
|
||||
ChannelContainer *User::FindChannel(const Channel *c) const
|
||||
ChanUserContainer *User::FindChannel(const Channel *c) const
|
||||
{
|
||||
for (UChannelList::const_iterator it = this->chans.begin(), it_end = this->chans.end(); it != it_end; ++it)
|
||||
for (User::ChanUserList::const_iterator it = this->chans.begin(), it_end = this->chans.end(); it != it_end; ++it)
|
||||
if ((*it)->chan == c)
|
||||
return *it;
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user