mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Fix sending the wrong message when a user requests stats.
Closes #2051.
This commit is contained in:
parent
c9668b8ab6
commit
a247b41516
@ -118,7 +118,7 @@ void CommandStats::DoStats(Stats::Context& stats)
|
||||
if (res == MOD_RES_DENY)
|
||||
{
|
||||
const char* what = IS_LOCAL(user) ? "Stats" : "Remote stats";
|
||||
ServerInstance->SNO.WriteToSnoMask('t', "{} '{}' denied for {} ({})", what, statschar, user->nick, user->GetRealUserHost());
|
||||
ServerInstance->SNO.WriteToSnoMask('t', "{} '{}' requested by {} ({})", what, statschar, user->nick, user->GetRealUserHost());
|
||||
stats.AddRow(219, statschar, "End of /STATS report");
|
||||
return;
|
||||
}
|
||||
|
@ -658,7 +658,7 @@ public:
|
||||
stats.AddGenericRow("Total DNSBL hits: " + ConvToStr(total_hits));
|
||||
stats.AddGenericRow("Total DNSBL misses: " + ConvToStr(total_misses));
|
||||
stats.AddGenericRow("Total DNSBL errors: " + ConvToStr(total_errors));
|
||||
return MOD_RES_PASSTHRU;
|
||||
return MOD_RES_DENY;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -915,7 +915,7 @@ ModResult ModuleFilter::OnStats(Stats::Context& stats)
|
||||
stats.AddRow(223, "EXEMPT " + exemptednick);
|
||||
}
|
||||
}
|
||||
return MOD_RES_PASSTHRU;
|
||||
return MOD_RES_DENY;
|
||||
}
|
||||
|
||||
void ModuleFilter::OnUnloadModule(Module* mod)
|
||||
|
Loading…
x
Reference in New Issue
Block a user