model Tail._send after LogToIrc's setup

This commit is contained in:
James Vega 2004-08-02 19:14:28 +00:00
parent f9e96770a3
commit c08ee5ecc6

View File

@ -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>