aboutsummaryrefslogtreecommitdiffstats
path: root/net/connlisteners.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-21 13:59:54 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-21 13:59:54 +0100
commitba911faf1a8b521ec358e9d61bb480adf554f673 (patch)
treeaffeef0ec34c16387a434c0db66dd722518fbb97 /net/connlisteners.lua
parent5479ec407ced79375e25705490c7f036fca1cce2 (diff)
downloadprosody-ba911faf1a8b521ec358e9d61bb480adf554f673.tar.gz
prosody-ba911faf1a8b521ec358e9d61bb480adf554f673.zip
connlisteners: Localize tostring, fixes possible traceback when LuaSec not installed
Diffstat (limited to 'net/connlisteners.lua')
-rw-r--r--net/connlisteners.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/connlisteners.lua b/net/connlisteners.lua
index ebb3cc18..932cd9cb 100644
--- a/net/connlisteners.lua
+++ b/net/connlisteners.lua
@@ -11,6 +11,7 @@
local listeners_dir = (CFG_SOURCEDIR or ".").."/net/";
local server = require "net.server";
local log = require "util.logger".init("connlisteners");
+local tostring = tostring;
local dofile, pcall, error =
dofile, pcall, error