Prat 3.0

86 - Alias module causes a LUA error

What steps will reproduce the problem?
1. Make a macro
2. insert "/c somechannelname test" (somechannelname must be a channel you are in)
3. save macro drag it onto action bar
4. Click action bar with mouse

What is the expected output? What do you see instead?
I expect that "test" is send to somechannelname, instead i get a lua error

What version of the product are you using?
tried release 3.0.1 and aplpha r215

*IMPORTANT* -> Can you reproduce the problem when ONLY Prat is running?
havent tried

Do you play on US or EU. What language do you use?
EU english

Do you have an error log of what happened?
from r215
[2009/02/07 06:43:24-3329-x1]: Interface\FrameXML\ChatFrame.lua:1687 attempt to index local 'editBox' (a nil value):
Prat-3.0-r215 \modules\Alias.lua:1147 in function <Interface\AddOns\Prat-3.0\modules\Alias.lua:1081
(tail call): ?:
Interface\FrameXML\ChatFrame.lua:3199 in function <Interface\FrameXML\ChatFrame.lua:3163
<in C code>: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:2930 in function `ChatEdit_SendText':
Interface\FrameXML\ChatFrame.lua:2068 in function <Interface\FrameXML\ChatFrame.lua:2061
<in C code>: in function `UseAction'
Interface\FrameXML\SecureTemplates.lua:258 in function `SecureActionButton_OnClick':
<string>:"*:OnClick":1: in function <[string "*:OnClick"]:1>

User When Change
Medalist Feb 08, 2009 at 05:36 UTC Changed status from New to Fixed
Xanobia Feb 07, 2009 at 05:49 UTC Create

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

  • 1 comment
  • Avatar of Medalist Medalist Feb 08, 2009 at 00:36 UTC - 0 likes

    FIXED

    1. Open World of Warcraft\Interface\AddOns\Prat-3.0\modules\Alias.lua

    2. Go to line 1141

    3. find

      local cmdString = getglobal("SLASH_"..index..i);
    
      replace with
    
      local cmdString = getglobal(index..i);
    

    4. Go to line 1154

    5. Find

      cmdString = getglobal("SLASH_"..index..i);
    
      Replace with
    
      cmdString = getglobal(index..i);
    

    6. Save & Exit

    7. /reloadui in game

    That fixed the problem on my side, please test it on yours too and post the result here.

  • 1 comment

Facts

Last updated
Feb 08, 2009
Reported
Feb 07, 2009
Status
Fixed - Developer made requested changes. QA should verify.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees