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) {