Changeset

6246:45b8ad2b14c5

plugins/muc/mod_muc: Don't use rooms object directory in adhoc section
author daurnimator <quae@daurnimator.com>
date Wed, 30 Apr 2014 12:43:04 -0400
parents 6245:8ec4ff630eb4
children 6247:851647eb6657
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Wed Apr 30 13:12:32 2014 -0400
+++ b/plugins/muc/mod_muc.lua	Wed Apr 30 12:43:04 2014 -0400
@@ -239,8 +239,7 @@
 		return { status = "completed", error = { message = t_concat(errmsg, "\n") } };
 	end
 	for _, room in ipairs(fields.rooms) do
-		rooms[room]:destroy();
-		rooms[room] = nil;
+		get_room_from_jid(room):destroy();
 	end
 	return { status = "completed", info = "The following rooms were destroyed:\n"..t_concat(fields.rooms, "\n") };
 end);