aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-02-20 00:56:14 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-02-20 00:56:14 +0500
commit4c696b7d8acaed5e4e324cae6f27d28d21a101d5 (patch)
tree2ac5f2f96f6b4d7b6e55c0c43bc7c7af701fd3d7
parent1113fbdedd06e496c037a9449fd9136c0cbf58bb (diff)
downloadprosody-4c696b7d8acaed5e4e324cae6f27d28d21a101d5.tar.gz
prosody-4c696b7d8acaed5e4e324cae6f27d28d21a101d5.zip
MUC: Syntax error in last commit - this is lua :)
-rw-r--r--plugins/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_muc.lua b/plugins/mod_muc.lua
index e02ab00e..b82ea37f 100644
--- a/plugins/mod_muc.lua
+++ b/plugins/mod_muc.lua
@@ -227,7 +227,7 @@ function handle_to_occupant(origin, stanza) -- PM, vCards, etc
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;