Less ambiguous name for the content of @owner announce.

This commit is contained in:
Valentin Lorentz 2017-01-22 12:50:00 +01:00
parent 71a97173c7
commit e52db064ca
2 changed files with 3 additions and 3 deletions

View File

@ -46,10 +46,10 @@ conf.registerGlobalValue(Owner, 'public',
registry.Boolean(True, """Determines whether this plugin is publicly
visible."""))
conf.registerGlobalValue(Owner, 'announceFormat',
registry.String('Announcement from my owner ($owner): $message',
registry.String('Announcement from my owner ($owner): $text',
"""Determines the format of messages sent by the @announce command.
$owner may be used for the username of the owner calling this command,
and $message for the announcement being made."""))
and $text for the announcement being made."""))
conf.registerGlobalValue(Owner, 'quitMsg',
registry.String('$version', """Determines what quit message will be used by default.
If the quit command is called without a quit message, this will be used. If

View File

@ -287,7 +287,7 @@ class Owner(callbacks.Plugin):
template = self.registryValue('announceFormat')
text = ircutils.standardSubstitute(
irc, msg, template, env={'owner': u.name, 'message': text})
irc, msg, template, env={'owner': u.name, 'text': text})
for channel in irc.state.channels:
c = ircdb.channels.getChannel(channel)