util/jid.lua@dcc5ac721c20
util/jid.lua
Sun, 24 Aug 2008 22:48:27 +0100
- author
- Matthew Wild <mwild1@gmail.com>
- date
- Sun, 24 Aug 2008 22:48:27 +0100
- changeset 7
- dcc5ac721c20
- parent 0
-
3e3171b59028
- child 27
-
859b316e2fb0
- permissions
- -rw-r--r--
- Remove some debugging code
- Don't allow stanzas to be sent before successful auth (needs further review)
- Make init_xmlhandlers local
- Fix indentation in main.lua
- Fix disconnect logic (it broke if client disconnected before auth, etc.)
local match = string.match;
module "jid"
function split(jid)
return match(jid, "^([^@]+)@([^/]+)/?(.*)$");
end