From 2a2956ef53942cb20ea53d0216dc6e9af6185e5c Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 22 Oct 2008 21:18:50 +0500 Subject: Minor edit, and added a TODO --- util/jid.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/jid.lua b/util/jid.lua index 784d2b64..b1e4131d 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, "/(.+)$"); -- cgit v1.2.3