1
0
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:
Adam
2012-12-28 10:37:54 -05:00
parent 379b2ccf92
commit b591e8cdc8
33 changed files with 116 additions and 133 deletions
+2 -2
View File
@@ -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;