diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-02-25 18:05:04 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-02-25 18:05:04 +0100 |
commit | 761e6d75ba37b984998952940ed681e79e456142 (patch) | |
tree | 002d219057b5b4fda5c49595eada3eb7e1e8d525 /src/xline.cpp | |
parent | b928bbfd192c5569b2fc5d497cfc88790bb6d795 (diff) | |
parent | 304b6dbbf56710b1310fce8c5cf71b73334c060a (diff) |
Merge branch 'master+writenumeric'
Diffstat (limited to 'src/xline.cpp')
-rw-r--r-- | src/xline.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index dedf8c7a9..30a1d7c9c 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -447,7 +447,7 @@ void XLineManager::ApplyLines() pending_lines.clear(); } -void XLineManager::InvokeStats(const std::string &type, int numeric, User* user, string_list &results) +void XLineManager::InvokeStats(const std::string& type, unsigned int numeric, Stats::Context& stats) { ContainerIter n = lookup_lines.find(type); @@ -468,7 +468,7 @@ void XLineManager::InvokeStats(const std::string &type, int numeric, User* user, ExpireLine(n, i); } else - results.push_back(ConvToStr(numeric)+" "+user->nick+" :"+i->second->Displayable()+" "+ + stats.AddRow(numeric, i->second->Displayable()+" "+ ConvToStr(i->second->set_time)+" "+ConvToStr(i->second->duration)+" "+i->second->source+" :"+i->second->reason); i = safei; } @@ -531,7 +531,7 @@ void XLine::DefaultApply(User* u, const std::string &line, bool bancache) const std::string banReason = line + "-Lined: " + reason; if (!ServerInstance->Config->XLineMessage.empty()) - u->WriteNumeric(ERR_YOUREBANNEDCREEP, ":" + ServerInstance->Config->XLineMessage); + u->WriteNumeric(ERR_YOUREBANNEDCREEP, ServerInstance->Config->XLineMessage); if (ServerInstance->Config->HideBans) ServerInstance->Users->QuitUser(u, line + "-Lined", &banReason); |