From c996356fab9281e018b78e04e652223817b68230 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 21 Aug 2011 16:35:22 -0400 Subject: Bugs #1321 & 1322 --- src/regchannel.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/regchannel.cpp b/src/regchannel.cpp index ed25ce6bf..160b7102b 100644 --- a/src/regchannel.cpp +++ b/src/regchannel.cpp @@ -207,6 +207,11 @@ ChanAccess *ChannelInfo::GetAccess(unsigned index) AccessGroup ChannelInfo::AccessFor(User *u) { + AccessGroup group; + + if (u == NULL) + return group; + NickCore *nc = u->Account(); if (nc == NULL && u->IsRecognized()) { @@ -215,8 +220,6 @@ AccessGroup ChannelInfo::AccessFor(User *u) nc = na->nc; } - AccessGroup group; - group.SuperAdmin = u->SuperAdmin; group.Founder = IsFounder(u, this); group.ci = this; -- cgit