Software /
code /
prosody
Diff
util/logger.lua @ 884:5758c39285ab
util.logger: Small code tidying :)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 07 Mar 2009 19:40:00 +0000 |
parent | 883:0112ae30f399 |
child | 896:2c0b9e3c11c3 |
line wrap: on
line diff
--- a/util/logger.lua Sat Mar 07 20:33:21 2009 +0100 +++ b/util/logger.lua Sat Mar 07 19:40:00 2009 +0000 @@ -18,7 +18,7 @@ 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 @@ 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