def notify(self): NagiosNotification.notify(self) msg = [] for line in (self.template % self.vars).split("\n"): if not line == "" and not line.strip().endswith(":"): msg.append(line) self.bot.inchan(self.channel, "say %s" % ", ".join(msg))
def notify(self): NagiosNotification.notify(self) subject = self.subject_template % self.vars body = self.template % self.vars self.send(subject, body)