Skip to content

Commit

Permalink
Fix IsAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
godwhoa committed Feb 26, 2019
1 parent c7b3ae4 commit 12755f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion irc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (irc *IRCClient) IsAdmin(nick string) bool {
if user == nil || !user.InChannel(irc.cfg.Channel) {
return false
}
perms, ok := user.Perms.Lookup(nick)
perms, ok := user.Perms.Lookup(irc.cfg.Channel)
return ok && perms.IsAdmin()
}

Expand Down

0 comments on commit 12755f0

Please sign in to comment.