This is a correction I successfuly compile and install the module, but when I try to use, I got: "m_chanstats is not loaded".
When doing /msg operserv modlist, I can see:
Module: m_chanstats [2.0.3] [Extra, Vendor]
Module: ns_massset [0.2] [Third]
The trouble is on line 251:
if (!Config->GetModule("m_chanstats"));
the ";" makes exiting from the if statement, and the m_chanstats module is never seen.
Just remove it and recompile, anything will be ok.