diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-02-25 17:02:03 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-02-25 17:02:03 +0100 |
commit | 304b6dbbf56710b1310fce8c5cf71b73334c060a (patch) | |
tree | 002d219057b5b4fda5c49595eada3eb7e1e8d525 /src/modules/m_shun.cpp | |
parent | dbe5a1fc6f9e18765863f332a3e79d7c918d3e65 (diff) |
Introduce Stats::Context, pass it to the OnStats hook and switch all code to it
Diffstat (limited to 'src/modules/m_shun.cpp')
-rw-r--r-- | src/modules/m_shun.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index a3a2909a0..5388bb485 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -194,12 +194,12 @@ class ModuleShun : public Module ServerInstance->Modules->SetPriority(this, I_OnPreCommand, PRIORITY_BEFORE, alias); } - ModResult OnStats(char symbol, User* user, string_list& out) CXX11_OVERRIDE + ModResult OnStats(Stats::Context& stats) CXX11_OVERRIDE { - if (symbol != 'H') + if (stats.GetSymbol() != 'H') return MOD_RES_PASSTHRU; - ServerInstance->XLines->InvokeStats("SHUN", 223, user, out); + ServerInstance->XLines->InvokeStats("SHUN", 223, stats); return MOD_RES_DENY; } |