Sun, 20 May 2018 02:16:48 +0200
riddim.plugins.servercontact: Query for XEP-0157: Contact Addresses for XMPP Services
function riddim.plugins.resolvejid(bot) function bot:resolvejid(jid, room) local nows = jid:match"%S+" local trimd = jid:match"^%s*(.-)%s*$" if room then local occupant = room.occupants[jid] or room.occupants[trimd] or room.occupants[nows] if occupant then return occupant.jid end end return nows end end