changeset 260:1fdd201c1d43

Merge Zash->trunk
author Matthew Wild <mwild1@gmail.com>
date Sun, 10 Oct 2010 21:37:44 +0100
parents d137515e0701 (current diff) 7410d1005fea (diff)
children 0f46fb2dbc79
files
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_intercom/mod_muc_intercom.lua	Thu Oct 07 16:20:28 2010 +0100
+++ b/mod_muc_intercom/mod_muc_intercom.lua	Sun Oct 10 21:37:44 2010 +0100
@@ -19,6 +19,7 @@
 	local from_room, from_host, from_nick = jid.split(from_room_jid);
 
 	local body = stanza:get_child("body");
+	if not body then return; end -- No body, like topic changes
 	body = body and body:get_text(); -- I feel like I want to do `or ""` there :/
 	local target_room, message = body:match("^@([^:]+):(.*)");
 	if not target_room or not message then return; end