aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-21 05:07:41 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-21 05:07:41 +0000
commite550dff27204b473ab426807f918672951d17505 (patch)
tree9223185fcd236ea779d9e3fa11e7c46a6029bd48
parent9122ff00399f77e31b902ac431288341dba70e64 (diff)
downloadprosody-e550dff27204b473ab426807f918672951d17505.tar.gz
prosody-e550dff27204b473ab426807f918672951d17505.zip
Better names for variables
-rw-r--r--util/jid.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/jid.lua b/util/jid.lua
index efa79b38..2e40a338 100644
--- a/util/jid.lua
+++ b/util/jid.lua
@@ -5,11 +5,11 @@ module "jid"
function split(jid)
if not jid then return; end
- local node, nodelen = match(jid, "^([^@]+)@()");
- local host, hostlen = match(jid, "^([^@/]+)()", nodelen)
+ local node, nodepos = match(jid, "^([^@]+)@()");
+ local host, hostpos = match(jid, "^([^@/]+)()", nodepos)
if node and not host then return nil, nil, nil; end
- local resource = match(jid, "^/(.+)$", hostlen);
- if (not host) or ((not resource) and #jid >= hostlen) then return nil, nil, nil; end
+ local resource = match(jid, "^/(.+)$", hostpos);
+ if (not host) or ((not resource) and #jid >= hostpos) then return nil, nil, nil; end
return node, host, resource;
end