From b657bdb211b25227ea37c9db458ec960b060c0d9 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 7 Mar 2009 19:40:00 +0000 Subject: util.logger: Small code tidying :) --- util/logger.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/logger.lua') diff --git a/util/logger.lua b/util/logger.lua index 9969f934..2c8eea30 100644 --- a/util/logger.lua +++ b/util/logger.lua @@ -18,7 +18,7 @@ local log_sources = config.get("*", "core", "log_sources"); local getstyle, getstring = require "util.termcolours".getstyle, require "util.termcolours".getstring; local do_pretty_printing = not os.getenv("WINDIR"); -local find = require "string".find; +local find = string.find; local ipairs = ipairs; module "logger" @@ -41,8 +41,8 @@ function init(name) local log_this = false; for _, source in ipairs(log_sources) do if find(name, source) then - log_this = true - break + log_this = true; + break; end end -- cgit v1.2.3