diff options
author | Adam <Adam@anope.org> | 2011-03-22 18:16:05 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-03-22 18:16:05 -0400 |
commit | c02d51f52348758487223856e716261a734af8fc (patch) | |
tree | ad126d60aabc89c388d8772fe3ecb980affc3e76 /src | |
parent | b95027ba28ade04542758af429505e9633fbb9ee (diff) |
Bug #1256
Diffstat (limited to 'src')
-rw-r--r-- | src/chanserv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chanserv.cpp b/src/chanserv.cpp index de43bb91c..6a5d92ad0 100644 --- a/src/chanserv.cpp +++ b/src/chanserv.cpp @@ -433,7 +433,7 @@ void cs_remove_nick(NickCore *nc) { ChanAccess *ca = ci->GetAccess(j); - if (!ca->nc->IsServicesOper() && Config->CSMaxReg && ca->nc->channelcount >= Config->CSMaxReg) + if (!ca->nc || (!ca->nc->IsServicesOper() && Config->CSMaxReg && ca->nc->channelcount >= Config->CSMaxReg)) continue; if (!highest || ca->level > highest->level) highest = ca; |