1
0
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:
Adam
2013-11-23 22:12:33 -05:00
parent 77e5744341
commit 90aa576fb3
6 changed files with 18 additions and 11 deletions
+2 -2
View File
@@ -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;