From b353e1db79ea70ea9fc3e9039b921c2652092331 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 Nov 2013 12:05:20 -0500 Subject: 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. --- modules/commands/cs_log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/commands/cs_log.cpp') diff --git a/modules/commands/cs_log.cpp b/modules/commands/cs_log.cpp index ef8bcc521..f7facad66 100644 --- a/modules/commands/cs_log.cpp +++ b/modules/commands/cs_log.cpp @@ -180,7 +180,7 @@ public: /* Get service name from command */ service_name = bi->commands[command_name].name; } - else if (ServiceReference("Command", command)) + else if (ServiceReference("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) { -- cgit