corrected a command and improved athome

This commit is contained in:
Madpeterz 2021-02-18 12:59:24 +00:00
parent dfc456d242
commit 46cd5c058b
2 changed files with 3 additions and 3 deletions

View file

@ -72,7 +72,7 @@ namespace BetterSecondbot.BetterAtHome
{ {
resetSwitchs(); resetSwitchs();
LoginFailed = true; LoginFailed = true;
whyfailed = e.FailReason; whyfailed = e.FailReason + " | "+e.Message;
} }
if (LoginFailed == false) if (LoginFailed == false)
{ {
@ -205,7 +205,7 @@ namespace BetterSecondbot.BetterAtHome
long dif = helpers.UnixTimeNow() - LastLoginEvent; long dif = helpers.UnixTimeNow() - LastLoginEvent;
if (LoginFailed == true) if (LoginFailed == true)
{ {
if (whyfailed != "presence") if (whyfailed.Contains("presence") == false)
{ {
SetBetterAtHomeAction("[DC] Unable to continue: " + whyfailed); SetBetterAtHomeAction("[DC] Unable to continue: " + whyfailed);
return; return;

View file

@ -482,7 +482,7 @@ namespace BetterSecondBot.HttpService
[About("checks if there are any groups with unread messages")] [About("checks if there are any groups with unread messages")]
[ReturnHints("True|False")] [ReturnHints("True|False")]
[Route(HttpVerbs.Get, "/GroupchatAnyUnread/{token}")] [Route(HttpVerbs.Get, "/GroupchatAnyUnread/{token}")]
public object haveunreadgroupchat(string token) public object GroupchatAnyUnread(string token)
{ {
if (tokens.Allow(token, "groups", "GroupchatAnyUnread", handleGetClientIP()) == false) if (tokens.Allow(token, "groups", "GroupchatAnyUnread", handleGetClientIP()) == false)
{ {