summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/access.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/access.cpp b/src/access.cpp
index 6ccca0fed..0c0713c49 100644
--- a/src/access.cpp
+++ b/src/access.cpp
@@ -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())
{