Sladana / epgp

Automatically exported from code.google.com/p/epgp
0 stars 0 forks source link

4.1 lua error #702

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Adding ep
2. Adding gp
3. Undo somethign in log
...

What is the expected output? What do you see instead?
Returns lua error

Message: Prefix is too long
Time: 04/27/11 22:33:40
Count: 4
Stack: [C]: ?
[C]: in function `SendAddonMessage'
...ace\AddOns\epgp\libs\AceComm-3.0\ChatThrottleLib.lua:461: in function 
`SendAddonMessage'
Interface\AddOns\epgp\LibGuildStorage-1.0.lua:68: in function 
<Interface\AddOns\epgp\LibGuildStorage-1.0.lua:67>
Interface\AddOns\epgp\LibGuildStorage-1.0.lua:343: in function 
<Interface\AddOns\epgp\LibGuildStorage-1.0.lua:245>

Locals: (*temporary) = "LibGuildStorage-1.0"
(*temporary) = "CHANGES_FLUSHED"
(*temporary) = "GUILD"
(*temporary) = nil

What version of the product are you using? What locale is your client (en,
ru, kr, ch, es, tw)? 
EU, version 5.5.25

What other addons do you have installed and what
versions? How many members do you have in your guild? (/guildinfo).
Only Dbm
18 members

Paste the text surrounded by -EPGP- in Guild Information here:
-EPGP-
@BASE_GP:100
@DECAY_P:5
-EPGP-

Please provide any additional information below.
Showed up after patch 4.1

Original issue reported on code.google.com by bosmanma...@gmail.com on 27 Apr 2011 at 9:02

GoogleCodeExporter commented 8 years ago
I'm getting the same error when people join the guild.

Original comment by WTri...@gmail.com on 28 Apr 2011 at 9:07

GoogleCodeExporter commented 8 years ago
Getting the same error everytime an award goes off or loot is distributed

Original comment by fergusjm...@gmail.com on 29 Apr 2011 at 8:10

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Appears to be fixed with a few changes to LibGuildStorage-1.0.lua to account 
for the new 16 character limit to the addon message prefixes.

Add to the top after the comments:

     local MAJOR_VERSION_SHORT = "LibGuildStorage"

**EDIT  Also add after the above addition:

     RegisterAddonMessagePrefix(MAJOR_VERSION_SHORT)

Change what should now be line 70 from

     "ALERT", MAJOR_VERSION, ...)

to

     "ALERT", MAJOR_VERSION_SHORT, ...)

And Change what should now be line 155 from

     if prefix ~= MAJOR_VERSION or sender == UnitName("player") then return end

to

     if prefix ~= MAJOR_VERSION_SHORT or sender == UnitName("player") then return end

Or, just replace LibGuildStorage-1.0.lua with the attached file

Original comment by kjhi...@gmail.com on 29 Apr 2011 at 6:44

Attachments: