mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
make on-join telling for later configurable.
This commit is contained in:
parent
e68704a0fc
commit
1b0aa48368
@ -48,5 +48,8 @@ conf.registerGlobalValue(Later, 'maximum',
|
||||
conf.registerGlobalValue(Later, 'private',
|
||||
registry.Boolean(True, _("""Determines whether users will be notified in
|
||||
the first place in which they're seen, or in private.""")))
|
||||
conf.registerGlobalValue(Later, 'tellOnJoin',
|
||||
registry.Boolean(True, _("""Determines whether users will be notified upon
|
||||
joining any channel the bot is in, or only upon sending a message.""")))
|
||||
|
||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
||||
|
@ -203,10 +203,11 @@ class Later(callbacks.Plugin):
|
||||
def _formatNote(self, when, whence, note):
|
||||
return _('Sent %s: <%s> %s') % (self._timestamp(when), whence, note)
|
||||
|
||||
doJoin = doPrivmsg
|
||||
def doJoin(self, irc, msg):
|
||||
if self.registryValue('tellOnJoin'):
|
||||
self.doPrivmsg(irc, msg)
|
||||
Later = internationalizeDocstring(Later)
|
||||
|
||||
|
||||
Class = Later
|
||||
|
||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=79:
|
||||
|
Loading…
Reference in New Issue
Block a user