projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4d9f09
)
Add jid.bare() helper function
author
Matthew Wild
<mwild1@gmail.com>
Thu, 20 Nov 2008 23:28:16 +0000
(23:28 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Thu, 20 Nov 2008 23:28:16 +0000
(23:28 +0000)
util/jid.lua
patch
|
blob
|
history
diff --git
a/util/jid.lua
b/util/jid.lua
index b1e4131d067c7d6ee353d76179e4527a095e4e80..c9ea5b736f7a3b3a445c13141bbad4446d209625 100644
(file)
--- a/
util/jid.lua
+++ b/
util/jid.lua
@@
-12,4
+12,9
@@
function split(jid)
return node, server, resource;
end
+function bare(jid)
+ local node, host = split(jid);
+ return node.."@"..host;
+end
+
return _M;
\ No newline at end of file