mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-20 00:54:45 +01:00
Fix for bug #1085210, change wrap()ing of {add,remove}capabilities to use
otherUser instead of hostmask.
This commit is contained in:
parent
7c7a73304a
commit
caae2dd608
@ -568,7 +568,7 @@ class Channel(callbacks.Privmsg):
|
||||
ircdb.users.setUser(user)
|
||||
irc.replySuccess()
|
||||
addcapability = wrap(addcapability, [('checkChannelCapability', 'op'),
|
||||
'hostmask', 'capability'])
|
||||
'otherUser', 'capability'])
|
||||
|
||||
def removecapability(self, irc, msg, args, channel, hostmask, capabilities):
|
||||
"""[<channel>] <name|hostmask> <capability> [<capability> ...]
|
||||
@ -598,7 +598,7 @@ class Channel(callbacks.Privmsg):
|
||||
irc.replySuccess()
|
||||
removecapability = wrap(removecapability,
|
||||
[('checkChannelCapability', 'op'),
|
||||
'hostmask', 'capability'])
|
||||
'otherUser', 'capability'])
|
||||
|
||||
# XXX This needs to be fix0red to be like Owner.defaultcapability. Or
|
||||
# something else. This is a horrible interface.
|
||||
|
Loading…
Reference in New Issue
Block a user