diff options
-rw-r--r-- | util/jid.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/jid.lua b/util/jid.lua index b7116fdf..28dd1a92 100644 --- a/util/jid.lua +++ b/util/jid.lua @@ -4,6 +4,7 @@ local match = string.match; module "jid" function split(jid) + if not jid then return nil; end local node = match(jid, "^([^@]+)@"); local server = (node and match(jid, ".-@([^@/]+)")) or match(jid, "^([^@/]+)"); local resource = match(jid, "/(.+)$"); |