diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/jid.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/jid.lua b/util/jid.lua index b1e4131d..c9ea5b73 100644 --- 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 |