disable CH:ScheduleTimer in chat temporarily

This commit is contained in:
Crum
2018-01-12 16:21:23 -06:00
parent 5ff5e3e083
commit 687eb89e86
+4 -4
View File
@@ -206,7 +206,7 @@ local function ChatFrame_OnMouseScroll(frame, delta)
CH:CancelTimer(frame.ScrollTimer, true) CH:CancelTimer(frame.ScrollTimer, true)
end end
frame.ScrollTimer = CH:ScheduleTimer("ScrollToBottom", CH.db.scrollDownInterval, frame) -- frame.ScrollTimer = CH:ScheduleTimer("ScrollToBottom", CH.db.scrollDownInterval, frame)
end end
end end
end end
@@ -627,7 +627,7 @@ function CH.FindURL(msg, ...)
if event and event == "CHAT_MSG_WHISPER" and CH.db.whisperSound ~= "None" and not CH.SoundPlayed then if event and event == "CHAT_MSG_WHISPER" and CH.db.whisperSound ~= "None" and not CH.SoundPlayed then
PlaySoundFile(LSM:Fetch("sound", CH.db.whisperSound), "Master") PlaySoundFile(LSM:Fetch("sound", CH.db.whisperSound), "Master")
CH.SoundPlayed = true CH.SoundPlayed = true
CH.SoundTimer = CH:ScheduleTimer("ThrottleSound", 1) -- CH.SoundTimer = CH:ScheduleTimer("ThrottleSound", 1)
end end
if not CH.db.url then if not CH.db.url then
@@ -1294,7 +1294,7 @@ function CH:CheckKeyword(message)
if(self.db.keywordSound ~= "None" and not self.SoundPlayed) then if(self.db.keywordSound ~= "None" and not self.SoundPlayed) then
PlaySoundFile(LSM:Fetch("sound", self.db.keywordSound), "Master") PlaySoundFile(LSM:Fetch("sound", self.db.keywordSound), "Master")
self.SoundPlayed = true self.SoundPlayed = true
self.SoundTimer = CH:ScheduleTimer("ThrottleSound", 1) -- self.SoundTimer = CH:ScheduleTimer("ThrottleSound", 1)
end end
end end
end end
@@ -1315,7 +1315,7 @@ function CH:CheckKeyword(message)
if self.db.keywordSound ~= "None" and not self.SoundPlayed then if self.db.keywordSound ~= "None" and not self.SoundPlayed then
PlaySoundFile(LSM:Fetch("sound", self.db.keywordSound), "Master") PlaySoundFile(LSM:Fetch("sound", self.db.keywordSound), "Master")
self.SoundPlayed = true self.SoundPlayed = true
self.SoundTimer = CH:ScheduleTimer("ThrottleSound", 1) -- self.SoundTimer = CH:ScheduleTimer("ThrottleSound", 1)
end end
end end
end end