From b39412bf775aa5bc4d53128b8359715499a253a6 Mon Sep 17 00:00:00 2001 From: GLolol Date: Tue, 6 May 2014 22:11:43 -0700 Subject: [PATCH] Topic: require Halfop+ instead of op --- plugins/Topic/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Topic/plugin.py b/plugins/Topic/plugin.py index b21d07b51..4b0b1dbe9 100644 --- a/plugins/Topic/plugin.py +++ b/plugins/Topic/plugin.py @@ -57,7 +57,8 @@ def canChangeTopic(irc, msg, args, state): state.error(format(_('I\'m not currently in %s.'), state.channel), Raise=True) c = irc.state.channels[state.channel] - if irc.nick not in c.ops and 't' in c.modes: + if 't' in c.modes and not c.isHalfopPlus(irc.nick): + # if irc.nick not in c.ops and 't' in c.modes: state.error(format(_('I can\'t change the topic, I\'m not opped ' 'and %s is +t.'), state.channel), Raise=True)