1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 23:56:39 +02:00

Include ip for web clients in command log messages for source

This commit is contained in:
Adam
2017-03-16 20:22:59 -04:00
parent 516ab164f6
commit b831cd8a36
14 changed files with 36 additions and 24 deletions
+6 -1
View File
@@ -146,7 +146,12 @@ Anope::string Log::FormatSource() const
else if (nc)
return nc->display;
else if (source)
return source->GetNick();
{
Anope::string buf = source->GetNick();
if (!buf.empty() && !source->ip.empty())
buf += " (" + source->ip + ")";
return buf;
}
return "";
}