summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-05-20 10:00:34 -0400
committerAdam <Adam@anope.org>2014-05-20 10:00:34 -0400
commite5811586450a8818f46f7d668afbfbcb42c08037 (patch)
treea7c1b1999bf6f06cd81372bd6e91f832380218a6 /src
parent01021131ca2f8e3808b1f3d284147e759a466f04 (diff)
Fix two compile warnings in access.cpp on newer compiles
Diffstat (limited to 'src')
-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())
{