aboutsummaryrefslogtreecommitdiffstats
path: root/util/jid.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-23 05:03:36 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-23 05:03:36 +0000
commitb94fd79634deabef5f4761825495e0940aec0ac6 (patch)
treebe1d302b3f7e9e812e294b95cad8750e1a690ac6 /util/jid.lua
parent21df2699e2ffd587a014c9c345ca1161d6a4fc5c (diff)
parent43c503330db3d5b1613c1babcd5ef150d2ccf247 (diff)
downloadprosody-b94fd79634deabef5f4761825495e0940aec0ac6.tar.gz
prosody-b94fd79634deabef5f4761825495e0940aec0ac6.zip
Merge from waqas
Diffstat (limited to 'util/jid.lua')
-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;