1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 03:16:37 +02:00

LOG_COMMAND must now always give a valid command

This commit is contained in:
Adam
2011-09-19 12:14:02 -04:00
parent f07295cc78
commit 934723faa5
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -164,6 +164,8 @@ Anope::string Log::BuildPrefix() const
{
case LOG_ADMIN:
{
if (!this->c)
break;
buffer += "ADMIN: ";
size_t sl = this->c->name.find('/');
Anope::string cname = sl != Anope::string::npos ? this->c->name.substr(sl + 1) : this->c->name;
@@ -174,6 +176,8 @@ Anope::string Log::BuildPrefix() const
}
case LOG_OVERRIDE:
{
if (!this->c)
break;
buffer += "OVERRIDE: ";
size_t sl = this->c->name.find('/');
Anope::string cname = sl != Anope::string::npos ? this->c->name.substr(sl + 1) : this->c->name;
@@ -184,6 +188,8 @@ Anope::string Log::BuildPrefix() const
}
case LOG_COMMAND:
{
if (!this->c)
break;
buffer += "COMMAND: ";
size_t sl = this->c->name.find('/');
Anope::string cname = sl != Anope::string::npos ? this->c->name.substr(sl + 1) : this->c->name;