summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-10-22 21:18:50 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-10-22 21:18:50 +0500
commit2a2956ef53942cb20ea53d0216dc6e9af6185e5c (patch)
tree5f836c69ebda6b80de33c0b12cc41c8e9adbfbaa
parentAdded: More complete implementation for mod_roster (diff)
downloadprosody-2a2956ef53942cb20ea53d0216dc6e9af6185e5c.tar.xz
prosody-2a2956ef53942cb20ea53d0216dc6e9af6185e5c.zip
Minor edit, and added a TODO
-rw-r--r--util/jid.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/jid.lua b/util/jid.lua
index 784d2b645..b1e4131d0 100644
--- a/util/jid.lua
+++ b/util/jid.lua
@@ -4,7 +4,8 @@ local match = string.match;
module "jid"
function split(jid)
- if not jid then return nil; end
+ if not jid then return; end
+ -- TODO verify JID, and return; if invalid
local node = match(jid, "^([^@]+)@");
local server = (node and match(jid, ".-@([^@/]+)")) or match(jid, "^([^@/]+)");
local resource = match(jid, "/(.+)$");