mirror of
https://github.com/anope/anope.git
synced 2026-07-03 21:23:13 +02:00
Fix/clean/clarify some stuff found by coverity scan
This commit is contained in:
+2
-2
@@ -145,7 +145,7 @@ Anope::string Log::BuildPrefix() const
|
||||
{
|
||||
case LOG_ADMIN:
|
||||
{
|
||||
if (!this->c && !(this->u || this->nc))
|
||||
if (!this->c)
|
||||
break;
|
||||
buffer += "ADMIN: ";
|
||||
Anope::string cname = source != NULL && !source->command.empty() ? source->command : this->c->name;
|
||||
@@ -159,7 +159,7 @@ Anope::string Log::BuildPrefix() const
|
||||
}
|
||||
case LOG_OVERRIDE:
|
||||
{
|
||||
if (!this->c && !(this->u || this->nc))
|
||||
if (!this->c)
|
||||
break;
|
||||
buffer += "OVERRIDE: ";
|
||||
Anope::string cname = source != NULL && !source->command.empty() ? source->command : this->c->name;
|
||||
|
||||
Reference in New Issue
Block a user