diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-03-07 19:40:00 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-03-07 19:40:00 +0000 |
commit | b657bdb211b25227ea37c9db458ec960b060c0d9 (patch) | |
tree | a3a06c2d259ae024c6dffa2bd75e41e4dc57245d /util/logger.lua | |
parent | 8a253c1cc93aa94a1a3782954035720f45e8b96c (diff) | |
download | prosody-b657bdb211b25227ea37c9db458ec960b060c0d9.tar.gz prosody-b657bdb211b25227ea37c9db458ec960b060c0d9.zip |
util.logger: Small code tidying :)
Diffstat (limited to 'util/logger.lua')
-rw-r--r-- | util/logger.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 |