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:
+6
-1
@@ -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 "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user