util/jid.lua

Tue, 26 Aug 2008 16:57:00 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 26 Aug 2008 16:57:00 +0100
changeset 20
6885fd2cf51f
parent 0
3e3171b59028
child 27
859b316e2fb0
permissions
-rw-r--r--

Remove some debugging messages
Connection now closed on error
Removed version='1.0' to keep it working with non-SASL

0
3e3171b59028 First commit, where do you want to go tomorrow?
matthew
parents:
diff changeset
1
3e3171b59028 First commit, where do you want to go tomorrow?
matthew
parents:
diff changeset
2 local match = string.match;
3e3171b59028 First commit, where do you want to go tomorrow?
matthew
parents:
diff changeset
3
3e3171b59028 First commit, where do you want to go tomorrow?
matthew
parents:
diff changeset
4 module "jid"
3e3171b59028 First commit, where do you want to go tomorrow?
matthew
parents:
diff changeset
5
3e3171b59028 First commit, where do you want to go tomorrow?
matthew
parents:
diff changeset
6 function split(jid)
3e3171b59028 First commit, where do you want to go tomorrow?
matthew
parents:
diff changeset
7 return match(jid, "^([^@]+)@([^/]+)/?(.*)$");
3e3171b59028 First commit, where do you want to go tomorrow?
matthew
parents:
diff changeset
8 end

mercurial