mirror of
https://github.com/anope/anope.git
synced 2026-06-28 02:36:38 +02:00
Rewrite access path system to be simplier and use recursion
Show where access is "from" in chanserv/status
This commit is contained in:
@@ -370,7 +370,7 @@ class CommandCSAccess : public Command
|
||||
if (ci->c)
|
||||
for (Channel::ChanUserList::const_iterator cit = ci->c->users.begin(), cit_end = ci->c->users.end(); cit != cit_end; ++cit)
|
||||
{
|
||||
ChanAccess::Path p;
|
||||
ChannelInfo *p;
|
||||
if (access->Matches(cit->second->user, cit->second->user->Account(), p))
|
||||
timebuf = "Now";
|
||||
}
|
||||
@@ -407,7 +407,7 @@ class CommandCSAccess : public Command
|
||||
if (ci->c)
|
||||
for (Channel::ChanUserList::const_iterator cit = ci->c->users.begin(), cit_end = ci->c->users.end(); cit != cit_end; ++cit)
|
||||
{
|
||||
ChanAccess::Path p;
|
||||
ChannelInfo *p;
|
||||
if (access->Matches(cit->second->user, cit->second->user->Account(), p))
|
||||
timebuf = "Now";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user