Channel: allow both admins and #channel,ops to use 'part'

This commit is contained in:
James Lu 2015-03-06 12:50:59 -05:00
parent 585c8ad026
commit 7757f3a1b4

View File

@ -974,7 +974,7 @@ class Channel(callbacks.Plugin):
irc.error(Raise=True)
capability = ircdb.makeChannelCapability(channel, 'op')
hostmask = irc.state.nickToHostmask(msg.nick)
if not ircdb.checkCapability(hostmask, capability):
if not ircdb.checkCapabilities(hostmask, [capability, 'admin']):
irc.errorNoCapability(capability, Raise=True)
try:
network = conf.supybot.networks.get(irc.network)