From 46cd5c058b5165c03491045216cd3796ed99e4e1 Mon Sep 17 00:00:00 2001 From: Madpeterz <57852827+Madpeterz@users.noreply.github.com> Date: Thu, 18 Feb 2021 12:59:24 +0000 Subject: [PATCH] corrected a command and improved athome --- BetterSecondbot/BetterAtHome/BetterAtHome.cs | 4 ++-- Core/Commands/Group.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BetterSecondbot/BetterAtHome/BetterAtHome.cs b/BetterSecondbot/BetterAtHome/BetterAtHome.cs index f858f5a..c01dcfa 100644 --- a/BetterSecondbot/BetterAtHome/BetterAtHome.cs +++ b/BetterSecondbot/BetterAtHome/BetterAtHome.cs @@ -72,7 +72,7 @@ namespace BetterSecondbot.BetterAtHome { resetSwitchs(); LoginFailed = true; - whyfailed = e.FailReason; + whyfailed = e.FailReason + " | "+e.Message; } if (LoginFailed == false) { @@ -205,7 +205,7 @@ namespace BetterSecondbot.BetterAtHome long dif = helpers.UnixTimeNow() - LastLoginEvent; if (LoginFailed == true) { - if (whyfailed != "presence") + if (whyfailed.Contains("presence") == false) { SetBetterAtHomeAction("[DC] Unable to continue: " + whyfailed); return; diff --git a/Core/Commands/Group.cs b/Core/Commands/Group.cs index 9a80d2a..cb47275 100644 --- a/Core/Commands/Group.cs +++ b/Core/Commands/Group.cs @@ -482,7 +482,7 @@ namespace BetterSecondBot.HttpService [About("checks if there are any groups with unread messages")] [ReturnHints("True|False")] [Route(HttpVerbs.Get, "/GroupchatAnyUnread/{token}")] - public object haveunreadgroupchat(string token) + public object GroupchatAnyUnread(string token) { if (tokens.Allow(token, "groups", "GroupchatAnyUnread", handleGetClientIP()) == false) {