1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 22:23:13 +02:00

Also check command names in cs_log when seeing if a newly added entry already exists. Also force command names lowercase when looking them up.

This commit is contained in:
Adam
2013-11-16 12:05:20 -05:00
parent 3edce88698
commit b353e1db79
+2 -2
View File
@@ -180,7 +180,7 @@ public:
/* Get service name from command */
service_name = bi->commands[command_name].name;
}
else if (ServiceReference<Command>("Command", command))
else if (ServiceReference<Command>("Command", command.lower()))
{
/* This is the service name, don't use any specific command */
service_name = command;
@@ -212,7 +212,7 @@ public:
{
LogSetting *log = (*ls)->at(i - 1);
if (log->service_name == service_name && log->method.equals_ci(method))
if (log->service_name == service_name && log->method.equals_ci(method) && command_name.equals_ci(log->command_name))
{
if (log->extra == extra)
{