Merge pull request #608 from GLolol/topic-use-halfop+

Topic: If channel is +t, require halfop+ to set topics instead of op.
This commit is contained in:
Valentin Lorentz 2014-05-07 07:54:10 +02:00
commit 39b30d515d
4 changed files with 8 additions and 8 deletions

View File

@ -102,9 +102,9 @@ msgid "I'm not currently in %s."
msgstr "En tällä hetkellä ole kanavalla %s." msgstr "En tällä hetkellä ole kanavalla %s."
#: plugin.py:61 #: plugin.py:61
msgid "I can't change the topic, I'm not opped and %s is +t." msgid "I can't change the topic, I'm not (half)opped and %s is +t."
msgstr "" msgstr ""
"En voi vaihtaa aihetta, koska en ole kanavaoperaattori ja kanavalla %s on " "En voi vaihtaa aihetta, koska en ole kanavapuolioperaattori ja kanavalla %s on "
"tila +t." "tila +t."
#: plugin.py:68 #: plugin.py:68

View File

@ -93,8 +93,8 @@ msgid "I'm not currently in %s."
msgstr "Je ne suis pas actuellement sur %s." msgstr "Je ne suis pas actuellement sur %s."
#: plugin.py:61 #: plugin.py:61
msgid "I can't change the topic, I'm not opped and %s is +t." msgid "I can't change the topic, I'm not (half)opped and %s is +t."
msgstr "Je ne peux changer le topic, je ne suis pas opé, et %s a le mode +t." msgstr "Je ne peux changer le topic, je ne suis pas halfopé, et %s a le mode +t."
#: plugin.py:68 #: plugin.py:68
msgid "The topic must not include %q." msgid "The topic must not include %q."

View File

@ -74,8 +74,8 @@ msgid "I'm not currently in %s."
msgstr "Attualmente non sono in %s." msgstr "Attualmente non sono in %s."
#: plugin.py:61 #: plugin.py:61
msgid "I can't change the topic, I'm not opped and %s is +t." msgid "I can't change the topic, I'm not(half)opped and %s is +t."
msgstr "Non posso cambiare il topic, non sono op e %s ha il mode +t." msgstr "Non posso cambiare il topic, non sono halfop e %s ha il mode +t."
#: plugin.py:68 #: plugin.py:68
msgid "The topic must not include %q." msgid "The topic must not include %q."

View File

@ -57,8 +57,8 @@ def canChangeTopic(irc, msg, args, state):
state.error(format(_('I\'m not currently in %s.'), state.channel), state.error(format(_('I\'m not currently in %s.'), state.channel),
Raise=True) Raise=True)
c = irc.state.channels[state.channel] 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):
state.error(format(_('I can\'t change the topic, I\'m not opped ' state.error(format(_('I can\'t change the topic, I\'m not (half)opped '
'and %s is +t.'), state.channel), Raise=True) 'and %s is +t.'), state.channel), Raise=True)
def getTopic(irc, msg, args, state, format=True): def getTopic(irc, msg, args, state, format=True):