- Few adjustements for this week release.

This commit is contained in:
tercio
2014-08-24 11:40:04 -03:00
parent 50f33fd301
commit ab51564def
5 changed files with 23 additions and 5 deletions
+9 -1
View File
@@ -516,7 +516,8 @@
end
end
function event_handler:GROUP_ONLEAVE()
function _detalhes:CheckChatOnLeaveGroup()
_detalhes.schedule_group_onleave_check = nil
if (zone_type == "none") then
if (_detalhes.schedule_chat_leave) then
_detalhes:CancelTimer (_detalhes.schedule_chat_leave)
@@ -526,6 +527,13 @@
end
end
end
function event_handler:GROUP_ONLEAVE()
if (_detalhes.schedule_group_onleave_check) then
_detalhes:CancelTimer (_detalhes.schedule_group_onleave_check)
_detalhes.schedule_group_onleave_check = nil
end
_detalhes.schedule_group_onleave_check = _detalhes:ScheduleTimer ("CheckChatOnLeaveGroup", 5)
end
_detalhes:RegisterEvent (event_handler, "GROUP_ONENTER", "GROUP_ONENTER")
_detalhes:RegisterEvent (event_handler, "GROUP_ONLEAVE", "GROUP_ONLEAVE")