Prat 3.0

659 - Telltarget Module - Make /tt work for all chatwindows

What steps will reproduce the problem?
1. Create a new Chat Window
2. Target any player
3. Type /tt

What is the expected output? What do you see instead?
I expect to whisper to the targeted player. Instead, the /tt command stays and no whisper is started.

What version of the product are you using?
Prat 3.5.4

Please provide any additional information below.
To fix the problem, add the following into the module:OnModuleEnable() function in Prat-3.0\modules\TellTarget.lua:192

self:HookScript(ChatFrame2EditBox, "OnTextChanged")
self:HookScript(ChatFrame3EditBox, "OnTextChanged")
self:HookScript(ChatFrame4EditBox, "OnTextChanged")
self:HookScript(ChatFrame5EditBox, "OnTextChanged")
self:HookScript(ChatFrame6EditBox, "OnTextChanged")
self:HookScript(ChatFrame7EditBox, "OnTextChanged")
self:HookScript(ChatFrame8EditBox, "OnTextChanged")
self:HookScript(ChatFrame9EditBox, "OnTextChanged")


This allows TellTarget to work for up to 9 chat windows without causing any errors, if the window does not exist.

User When Change
LordGogo Feb 25, 2013 at 10:41 UTC Changed description:
  What steps will reproduce the problem?
- 1. Create a new Chat Tab
+ 1. Create a new Chat Window
  2. Target any player
  3. Type /tt
LordGogo Feb 25, 2013 at 10:40 UTC Changed name from Make /tt (Telltarget Module) work for all chatwindows to Telltarget Module - Make /tt work for all chatwindows
LordGogo Feb 25, 2013 at 10:39 UTC
LordGogo Feb 25, 2013 at 10:39 UTC Changed component from None to Specific Module
LordGogo Feb 25, 2013 at 10:38 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Last updated
Feb 25, 2013
Reported
Feb 25, 2013
Status
New - Issue has not had initial review yet.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0
Component
Specific Module

Reported by

Possible assignees