From af2f9237739ba609778b58ab2361e765da38f882 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Mon, 13 May 2013 15:52:01 -0400 Subject: util.hashes: inttypes.h not available with MS Windows SDK, use MS specific __int32 instead. --- util-src/hashes.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util-src/hashes.c b/util-src/hashes.c index 8f7d7140..39737ae0 100644 --- a/util-src/hashes.c +++ b/util-src/hashes.c @@ -15,7 +15,12 @@ #include #include + +#ifdef _MSC_VER +typedef unsigned __int32 uint32_t; +#else #include +#endif #include "lua.h" #include "lauxlib.h" -- cgit v1.2.3 From a9407043cf075c684494be34a5622ad06666a043 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 14 May 2013 09:38:54 +0100 Subject: mod_muc: Fire muc-room-created and muc-room-destroyed events (thanks nik) --- plugins/muc/mod_muc.lua | 1 + plugins/muc/muc.lib.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 7861092c..0f1beb0e 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -83,6 +83,7 @@ function create_room(jid) room.route_stanza = room_route_stanza; room.save = room_save; rooms[jid] = room; + module:fire_event("muc-room-created", { room = room }); return room; end diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index a5aba3c8..1ea231f3 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -767,6 +767,7 @@ function room_mt:destroy(newjid, reason, password) self._occupants[nick] = nil; end self:set_persistent(false); + module:fire_event("muc-room-destroyed", { room = self }); end function room_mt:handle_to_room(origin, stanza) -- presence changes and groupchat messages, along with disco/etc -- cgit v1.2.3