Update Group.cs
corrects RoleDataAge value to not be -1 if we have data and its less than 120 secs old
This commit is contained in:
parent
240ba3decf
commit
b6ada34ed5
1 changed files with 2 additions and 2 deletions
|
|
@ -100,10 +100,10 @@ namespace BetterSecondBot.HttpService
|
|||
else
|
||||
{
|
||||
long dif = helpers.UnixTimeNow() - bot.MyGroupRolesStorage[groupuuid].Key;
|
||||
if(dif >= 120)
|
||||
reply.RoleDataAge = dif;
|
||||
if (dif >= 120)
|
||||
{
|
||||
reply.UpdateUnderway = true;
|
||||
reply.RoleDataAge = dif;
|
||||
}
|
||||
foreach(GroupRole gr in bot.MyGroupRolesStorage[groupuuid].Value)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue