# HG changeset patch # User Matthew Wild # Date 1227223696 0 # Node ID a59300fc22ec118004c3356e99ca690a285bb2bc # Parent 02b8f2ffa6a752ed639e020f17a5a88b81cda1b3 Add jid.bare() helper function diff -r 02b8f2ffa6a7 -r a59300fc22ec util/jid.lua --- a/util/jid.lua Thu Nov 20 22:42:37 2008 +0000 +++ b/util/jid.lua Thu Nov 20 23:28:16 2008 +0000 @@ -12,4 +12,9 @@ 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