diff options
author | Adam <Adam@anope.org> | 2014-04-24 01:50:50 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-04-24 01:50:50 -0400 |
commit | 75ed5a9b59dd29b2e63d502eb3425696d93765fd (patch) | |
tree | 96482c835dfad6f54e4983aa746d7d8258878cab /modules/commands/os_stats.cpp | |
parent | f010ab7dbf020ae218dbd7390af4bcff4bac6fbe (diff) |
Fix os_stats counters not saving with db_sql_live. Bleh.
Diffstat (limited to 'modules/commands/os_stats.cpp')
-rw-r--r-- | modules/commands/os_stats.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/commands/os_stats.cpp b/modules/commands/os_stats.cpp index 85088f385..bd868b903 100644 --- a/modules/commands/os_stats.cpp +++ b/modules/commands/os_stats.cpp @@ -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) |