diff options
author | Adam <Adam@anope.org> | 2013-11-16 12:05:20 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-11-16 12:05:20 -0500 |
commit | b353e1db79ea70ea9fc3e9039b921c2652092331 (patch) | |
tree | 8d2462b16bdc38af5fab7a89b2ad167ea5620e14 | |
parent | 3edce88698be28b3f60206fd7c1f2945f8742472 (diff) |
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.
-rw-r--r-- | modules/commands/cs_log.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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", 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) { |