MUC: Removed some debug logging.
authorWaqas Hussain <waqas20@gmail.com>
Sun, 13 Sep 2009 21:11:17 +0000 (02:11 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Sun, 13 Sep 2009 21:11:17 +0000 (02:11 +0500)
plugins/muc/mod_muc.lua

index 1b6dd3c2f17a51cc5e8e957d7da45a0d624081d1..3e6fafb85d217a723262857ea93d66edee894fb1 100644 (file)
@@ -31,9 +31,7 @@ local function room_route_stanza(room, stanza) core_post_stanza(component, stanz
 local function room_save(room, forced)
        local node = jid_split(room.jid);
        persistent_rooms[room.jid] = room._data.persistent;
-       module:log("debug", "1, %s, %s", room.jid, tostring(room._data.persistent));
        if room._data.persistent then
-               module:log("debug", "2");
                local history = room._data.history;
                room._data.history = nil;
                local data = {
@@ -44,10 +42,8 @@ local function room_save(room, forced)
                datamanager.store(node, muc_host, "config", data);
                room._data.history = history;
        elseif forced then
-               module:log("debug", "3");
                datamanager.store(node, muc_host, "config", nil);
        end
-       module:log("debug", "4");
        if forced then datamanager.store(nil, muc_host, "persistent", persistent_rooms); end
 end