mirror of
https://github.com/anope/anope.git
synced 2026-07-01 10:46:38 +02:00
Fix extra space in log messages with logtype channel and no source
This commit is contained in:
+5
-1
@@ -189,7 +189,11 @@ Anope::string Log::BuildPrefix() const
|
||||
{
|
||||
if (!this->chan)
|
||||
break;
|
||||
buffer += "CHANNEL: " + FormatSource() + " " + this->category + " " + this->chan->name + " ";
|
||||
buffer += "CHANNEL: ";
|
||||
Anope::string src = FormatSource();
|
||||
if (!src.empty())
|
||||
buffer += src + " ";
|
||||
buffer += this->category + " " + this->chan->name + " ";
|
||||
break;
|
||||
}
|
||||
case LOG_USER:
|
||||
|
||||
Reference in New Issue
Block a user