mirror of
https://github.com/anope/anope.git
synced 2026-06-25 20:16:36 +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:
@@ -23,8 +23,8 @@ class StatusUpdate : public Module
|
||||
{
|
||||
User *user = it->second->user;
|
||||
|
||||
ChanAccess::Path p;
|
||||
if (user->server != Me && access->Matches(user, user->Account(), p))
|
||||
ChannelInfo *next;
|
||||
if (user->server != Me && access->Matches(user, user->Account(), next))
|
||||
{
|
||||
AccessGroup ag = ci->AccessFor(user);
|
||||
|
||||
@@ -46,8 +46,8 @@ class StatusUpdate : public Module
|
||||
{
|
||||
User *user = it->second->user;
|
||||
|
||||
ChanAccess::Path p;
|
||||
if (user->server != Me && access->Matches(user, user->Account(), p))
|
||||
ChannelInfo *next;
|
||||
if (user->server != Me && access->Matches(user, user->Account(), next))
|
||||
{
|
||||
AccessGroup ag = ci->AccessFor(user);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user