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

Cleanup previous commit

Fix log messages from commands send through webpanel
Don't show OperServ section to non opers
This commit is contained in:
Adam
2013-09-03 18:51:18 -04:00
parent 404debf789
commit 4691351167
17 changed files with 111 additions and 68 deletions
+3 -3
View File
@@ -148,7 +148,7 @@ Anope::string Log::BuildPrefix() const
if (!this->c && !(this->u || this->nc))
break;
buffer += "ADMIN: ";
Anope::string cname = source != NULL ? source->command : this->c->name;
Anope::string cname = source != NULL && !source->command.empty() ? source->command : this->c->name;
if (this->u)
buffer += this->u->GetMask() + " used " + cname + " ";
else if (this->nc)
@@ -162,7 +162,7 @@ Anope::string Log::BuildPrefix() const
if (!this->c && !(this->u || this->nc))
break;
buffer += "OVERRIDE: ";
Anope::string cname = source != NULL ? source->command : this->c->name;
Anope::string cname = source != NULL && !source->command.empty() ? source->command : this->c->name;
if (this->u)
buffer += this->u->GetMask() + " used " + cname + " ";
else if (this->nc)
@@ -176,7 +176,7 @@ Anope::string Log::BuildPrefix() const
if (!this->c)
break;
buffer += "COMMAND: ";
Anope::string cname = source != NULL ? source->command : this->c->name;
Anope::string cname = source != NULL && !source->command.empty() ? source->command : this->c->name;
if (this->u)
buffer += this->u->GetMask() + " used " + cname + " ";
else if (this->source)