mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
model Tail._send after LogToIrc's setup
This commit is contained in:
parent
f9e96770a3
commit
c08ee5ecc6
@ -40,6 +40,7 @@ import supybot.plugins as plugins
|
|||||||
|
|
||||||
import supybot.conf as conf
|
import supybot.conf as conf
|
||||||
import supybot.utils as utils
|
import supybot.utils as utils
|
||||||
|
import supybot.ircmsgs as ircmsgs
|
||||||
import supybot.ircutils as ircutils
|
import supybot.ircutils as ircutils
|
||||||
import supybot.privmsgs as privmsgs
|
import supybot.privmsgs as privmsgs
|
||||||
import supybot.registry as registry
|
import supybot.registry as registry
|
||||||
@ -108,7 +109,10 @@ class Tail(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
notice = self.registryValue('notice')
|
notice = self.registryValue('notice')
|
||||||
payload = '%s: %s' % (filename, text)
|
payload = '%s: %s' % (filename, text)
|
||||||
for target in targets:
|
for target in targets:
|
||||||
irc.reply(payload, to=target, notice=notice)
|
msgmaker = ircmsgs.privmsg
|
||||||
|
if notice and not ircutils.isChannel(target):
|
||||||
|
msgmaker = ircmsgs.notice
|
||||||
|
irc.sendMsg(msgmaker(target, payload))
|
||||||
|
|
||||||
def add(self, irc, msg, args):
|
def add(self, irc, msg, args):
|
||||||
"""<filename>
|
"""<filename>
|
||||||
|
Loading…
Reference in New Issue
Block a user