# HG changeset patch # User Marco Cirillo # Date 1341097289 0 # Node ID 15a8b717597b08f9d5edf3f6bf7c055683cf9c21 # Parent 274bb1a96122017a8af53ecd906c03eb3608ef06 mod_compat_muc_admin: added missing import (thanke MattJ) diff -r 274bb1a96122 -r 15a8b717597b mod_compat_muc_admin/mod_compat_muc_admin.lua --- a/mod_compat_muc_admin/mod_compat_muc_admin.lua Thu Jun 28 05:24:26 2012 +0200 +++ b/mod_compat_muc_admin/mod_compat_muc_admin.lua Sat Jun 30 23:01:29 2012 +0000 @@ -23,6 +23,10 @@ ["service-unavailable"] = true; ["malformed error"] = true; }; +local function get_error_condition(stanza) + local _, condition = stanza:get_error(); + return condition or "malformed error"; +end local function is_kickable_error(stanza) local cond = get_error_condition(stanza); return kickable_error_conditions[cond] and cond;