diff --git a/icingabot.py b/icingabot.py index bc72b26..4c933c9 100755 --- a/icingabot.py +++ b/icingabot.py @@ -259,19 +259,7 @@ class IcingaBot(Icinga2ServiceManager, irc.bot.SingleServerIRCBot): self.suffix_nick("[{}]".format(len(self.notifications))) else: self.suffix_nick("") - for srv in lost: - if srv is not None: - self.send("{} is OK".format(srv["name"])) - for srv in news: - try: - self.send( - "{}: => {}".format( - srv["name"], - srv["attrs"]["last_check_result"]["output"], - ) - ) - except Exception: - self.send("{}: => No check result.".format(srv["name"])) + return def on_nicknameinuse(self, c, e): c.nick(+"_")