From 8610e942dd234df8987da67d91eface688ff5857 Mon Sep 17 00:00:00 2001 From: Patrick Balsiger Date: Fri, 23 Nov 2018 14:51:08 +0100 Subject: [PATCH] publish connected state --- src/IrcPlugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/IrcPlugin.cpp b/src/IrcPlugin.cpp index 8e608fe..f962d0d 100644 --- a/src/IrcPlugin.cpp +++ b/src/IrcPlugin.cpp @@ -62,10 +62,12 @@ void IrcPlugin::connect() if (client->connect(nick.c_str(), user.c_str())) { PRINT_MSG(Serial, "IRC", "connected"); + publish("irc/connected", "1"); } else { PRINT_MSG(Serial, "IRC", "failed... "); + publish("irc/connected", "0"); } return; }