1
0
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:
Adam
2014-05-21 08:40:54 -04:00
parent 866f3f32ab
commit 5a1257b7f0
+5 -1
View File
@@ -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: