diff options
author | matthew <matthew@silver> | 2008-08-24 18:01:20 +0100 |
---|---|---|
committer | matthew <matthew@silver> | 2008-08-24 18:01:20 +0100 |
commit | 5ea14b62950a6a9cbdc96c7354afddcf637d9d41 (patch) | |
tree | 1285f7cc14c92306dab94b104648dd1747812069 /util/jid.lua | |
download | prosody-5ea14b62950a6a9cbdc96c7354afddcf637d9d41.tar.gz prosody-5ea14b62950a6a9cbdc96c7354afddcf637d9d41.zip |
Added all the files to please hg :/
Diffstat (limited to 'util/jid.lua')
-rw-r--r-- | util/jid.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/jid.lua b/util/jid.lua new file mode 100644 index 00000000..9d01e2af --- /dev/null +++ b/util/jid.lua @@ -0,0 +1,8 @@ + +local match = string.match; + +module "jid" + +function split(jid) + return match(jid, "^([^@]+)@([^/]+)/?(.*)$"); +end |