diff options
author | Adam <Adam@anope.org> | 2013-11-23 22:12:33 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-11-23 22:12:33 -0500 |
commit | 90aa576fb3c1ceae434c2a7b794f13941c80b7b3 (patch) | |
tree | 938d944e802f73c2ac1c33802f8cd508fd1a17ef /src/logger.cpp | |
parent | 77e57443416fc12f77a1bcf23a7f0341b8d12f9f (diff) |
Fix/clean/clarify some stuff found by coverity scan
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index 296b22dac..d9c0e5d66 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -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; |