From c75a28e93268d34a29efdd8619453d51e65d7466 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 7 Apr 2017 14:55:34 -0400 Subject: Fixup previous commit to chanserv/access --- modules/chanserv/access.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/chanserv/access.cpp b/modules/chanserv/access.cpp index 70db18fad..ff2de572a 100644 --- a/modules/chanserv/access.cpp +++ b/modules/chanserv/access.cpp @@ -900,13 +900,13 @@ class CSAccess : public Module if (group->ci == NULL) return EVENT_CONTINUE; - const ChanServ::ChanAccess *highest = group->Highest(); - if (highest && highest->provider == &accesschanaccesstype) + ChanServ::ChanAccess *highest = group->Highest(); + if (highest && highest->GetSerializableType() == &accesschanaccesstype) { /* Access is the only access provider with the concept of negative access, * so check they don't have negative access */ - const AccessChanAccess *aca = anope_dynamic_static_cast(highest); + AccessChanAccess *aca = anope_dynamic_static_cast(highest); if (aca->GetLevel() < 0) return EVENT_CONTINUE; -- cgit