diff options
author | Adam <Adam@anope.org> | 2011-08-21 16:35:22 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-21 16:35:22 -0400 |
commit | c996356fab9281e018b78e04e652223817b68230 (patch) | |
tree | 0bd575ab54742eaa0bf48fa0d31def98bc2a0f1f /src | |
parent | d71ae412bb539ee63a2428dca6264d989b5cbc33 (diff) |
Bugs #1321 & 1322
Diffstat (limited to 'src')
-rw-r--r-- | src/regchannel.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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; |