mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-21 02:02:53 +01:00
Merge pull request #1075 from GLolol/channel/allow-admin-part
Channel: allow both admins and #channel,ops to use 'part'
This commit is contained in:
commit
a5e881b116
@ -974,7 +974,7 @@ class Channel(callbacks.Plugin):
|
|||||||
irc.error(Raise=True)
|
irc.error(Raise=True)
|
||||||
capability = ircdb.makeChannelCapability(channel, 'op')
|
capability = ircdb.makeChannelCapability(channel, 'op')
|
||||||
hostmask = irc.state.nickToHostmask(msg.nick)
|
hostmask = irc.state.nickToHostmask(msg.nick)
|
||||||
if not ircdb.checkCapability(hostmask, capability):
|
if not ircdb.checkCapabilities(hostmask, [capability, 'admin']):
|
||||||
irc.errorNoCapability(capability, Raise=True)
|
irc.errorNoCapability(capability, Raise=True)
|
||||||
try:
|
try:
|
||||||
network = conf.supybot.networks.get(irc.network)
|
network = conf.supybot.networks.get(irc.network)
|
||||||
|
Loading…
Reference in New Issue
Block a user