Software /
code /
prosody
Changeset
884:5758c39285ab
util.logger: Small code tidying :)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 07 Mar 2009 19:40:00 +0000 |
parents | 883:0112ae30f399 |
children | 885:38ed2db19a55 |
files | util/logger.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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