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