aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/jid.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/util/jid.lua b/util/jid.lua
index 2e40a338..065f176f 100644
--- a/util/jid.lua
+++ b/util/jid.lua
@@ -17,10 +17,8 @@ function bare(jid)
local node, host = split(jid);
if node and host then
return node.."@"..host;
- elseif host then
- return host;
end
- return nil;
+ return host;
end
return _M;