plugins/groupchat.lua

changeset 44
8e508f08cc7f
parent 42
5ee2eccabcc9
child 45
aa797b0a98e7
--- 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);

mercurial