mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
Fix os_stats counters not saving with db_sql_live. Bleh.
This commit is contained in:
@@ -258,6 +258,12 @@ class OSStats : public Module
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void OnUserConnect(User *u, bool &exempt) anope_override
|
||||
{
|
||||
if (UserListByNick.size() == MaxUserCount && Anope::CurTime == MaxUserTime)
|
||||
stats_saver.QueueUpdate();
|
||||
}
|
||||
};
|
||||
|
||||
MODULE_INIT(OSStats)
|
||||
|
||||
Reference in New Issue
Block a user