From caae2dd6087d6325e68233ff4034ec5b73cb4345 Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 15 Dec 2004 14:46:06 +0000 Subject: [PATCH] Fix for bug #1085210, change wrap()ing of {add,remove}capabilities to use otherUser instead of hostmask. --- src/Channel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Channel.py b/src/Channel.py index 043ee0ba7..3cde8701f 100755 --- a/src/Channel.py +++ b/src/Channel.py @@ -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): """[] [ ...] @@ -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.