mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Less ambiguous name for the content of @owner announce.
This commit is contained in:
parent
71a97173c7
commit
e52db064ca
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user