just adding delay

This commit is contained in:
jenz 2023-08-14 12:55:53 +02:00
parent d89ce6f0fd
commit 487a24f278

View File

@ -142,6 +142,19 @@ public void SQL_callback_update(Database db, DBResultSet results, const char[] e
return;
}
if (IsValidClient(client) && !g_disable_html_motd[client])
{
CreateTimer(7.0, re_open_motd, GetClientSerial(client));
}
}
public Action re_open_motd(Handle hTimer, int Serial)
{
int client;
if ((client = GetClientFromSerial(Serial)) == 0)
{
return;
}
if (IsValidClient(client))
{
//reopening the menu again after info got stored. it still generates the same fingerprint despite not showing the client any menu.
Handle panel = CreateKeyValues("data");