Software /
code /
verse
Diff
plugins/groupchat.lua @ 399:82ad158714e5
Merge with Zash
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 12 Jan 2016 13:14:36 +0000 |
parent | 380:0891b4e27766 |
child | 418:40b8cc364274 |
line wrap: on
line diff
--- a/plugins/groupchat.lua Sat Jan 09 11:03:30 2016 +0000 +++ b/plugins/groupchat.lua Tue Jan 12 13:14:36 2016 +0000 @@ -11,7 +11,7 @@ function verse.plugins.groupchat(stream) stream:add_plugin("presence") stream.rooms = {}; - + stream:hook("stanza", function (stanza) local room_jid = jid.bare(stanza.attr.from); if not room_jid then return end @@ -37,7 +37,7 @@ return ret or (stanza.name == "message") or nil; end end, 500); - + function stream:join_room(jid, nick, opts) if not nick then return false, "no nickname supplied"