1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 03:26:39 +02:00

logger.cpp: fix variable shadow warning

This commit is contained in:
Adam
2017-03-16 21:37:34 -04:00
parent b831cd8a36
commit 3c18e02b0b
+4 -4
View File
@@ -147,10 +147,10 @@ Anope::string Log::FormatSource() const
return nc->display;
else if (source)
{
Anope::string buf = source->GetNick();
if (!buf.empty() && !source->ip.empty())
buf += " (" + source->ip + ")";
return buf;
Anope::string nickbuf = source->GetNick();
if (!nickbuf.empty() && !source->ip.empty())
nickbuf += " (" + source->ip + ")";
return nickbuf;
}
return "";
}