# HG changeset patch # User Kim Alvefur # Date 1289441346 -3600 # Node ID 8e508f08cc7f010a138805fbf0bbcb5c52a53612 # Parent dd99a0dde0168b25ff575237970f815f9f0d4552 plugins.groupchat: Set a to attribute on stanzas to rooms if there isn't one diff -r dd99a0dde016 -r 8e508f08cc7f plugins/groupchat.lua --- a/plugins/groupchat.lua Tue Nov 09 17:57:44 2010 +0100 +++ b/plugins/groupchat.lua Thu Nov 11 03:09:06 2010 +0100 @@ -107,7 +107,7 @@ if stanza.name == "message" and not stanza.attr.type then stanza.attr.type = "groupchat"; end - if stanza.attr.type == "groupchat" then + if stanza.attr.type == "groupchat" or not stanza.attr.to then stanza.attr.to = self.jid; end self.bot:send(stanza);