# HG changeset patch # User Waqas Hussain # Date 1235073374 -18000 # Node ID 97ea39b7bf9097a294fc64d14a6c977bb81c7a59 # Parent e74045238ee3857ca7920da8a17d7e66915441ac MUC: Syntax error in last commit - this is lua :) diff -r e74045238ee3 -r 97ea39b7bf90 plugins/mod_muc.lua --- a/plugins/mod_muc.lua Fri Feb 20 00:51:33 2009 +0500 +++ b/plugins/mod_muc.lua Fri Feb 20 00:56:14 2009 +0500 @@ -227,7 +227,7 @@ local current_nick = jid_nick:get(from, room); local type = stanza.attr.type; log("debug", "room: %s, current_nick: %s, stanza: %s", room or "nil", current_nick or "nil", stanza:top_tag()); - if (select(2, jid_split(from)) == muc_domain) error("Presence from the MUC itself!!!"); + if (select(2, jid_split(from)) == muc_domain) then error("Presence from the MUC itself!!!"); end if stanza.name == "presence" then local pr = get_filtered_presence(stanza); pr.attr.from = current_nick;