mirror of
https://github.com/anope/anope.git
synced 2026-06-27 00:56:38 +02:00
Fix two compile warnings in access.cpp on newer compiles
This commit is contained in:
+2
-2
@@ -151,7 +151,7 @@ ChanAccess::~ChanAccess()
|
||||
if (it != this->ci->access->end())
|
||||
this->ci->access->erase(it);
|
||||
|
||||
if (nc != NULL)
|
||||
if (*nc != NULL)
|
||||
nc->RemoveChannelReference(this->ci);
|
||||
else
|
||||
{
|
||||
@@ -164,7 +164,7 @@ ChanAccess::~ChanAccess()
|
||||
|
||||
void ChanAccess::SetMask(const Anope::string &m, ChannelInfo *c)
|
||||
{
|
||||
if (nc != NULL)
|
||||
if (*nc != NULL)
|
||||
nc->RemoveChannelReference(this->ci);
|
||||
else if (!this->mask.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user