View Single Post
09-23-15, 09:26 AM   #6
Gryns
A Deviate Faerie Dragon
 
Gryns's Avatar
Join Date: Sep 2015
Posts: 11
Originally Posted by semlar View Post
Since this is from my addon NoRealm, I figured I'd chime in.

Unless you're running an addon that's interfering with it, or you're talking about battle net whispers (which I don't even think can contain a realm?), that should still be removing the realm name from the chat.

I know Prat was causing issues with the original pattern I was using because of all the junk they added to the player link (mostly class coloring), but that was fixed in the more recent version of the addon than what you posted here.
Hey Semlar, didn't know the script was from your addon, found it in a thread somewhere.

I use BasicChatMods, but even with that disabled it doesn't filter the suffix. Don't get me wrong though, it does remove it from the main chat window, just not when you type. To clarify, when I click on a name in trade chat for instance, it will show "Tell Semlar-Aggramar:" when you are typing in your message, but the conversation itself has the realm suffix removed. I would just like the realm suffix removed in the edit box as well as in the chat window. If that's at all possible, of course.

Originally Posted by Phanx View Post
There's probably an error; I didn't test either in-game. Install Bugger and report back with the errors from each.
I did, and here are the reports.

As for the tooltips. Variations of these showed when mousing over a pet/companion/bodyguard/etc:

Code:
95x TooltipHideRealm\code.lua:17: bad argument #1 to 'strmatch' (string expected, got nil)
[C]:: in function 'strmatch'
TooltipHideRealm\code.lua:17: in function <TooltipHideRealm\code.lua:15>
TooltipHideRealm\code.lua:34: in function <TooltipHideRealm\code.lua:28>
[C]:: ?
[C]:: ?
[C]:: ?

Locals:
t = <table>
k = "Minalla-Silvermoon's Companion"
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
 (%s)'s Minion = "%s's Minion"
 (%s)'s Totem = "%s's Totem"
 (%s)'s Companion = "%s's Companion"
 Loot: (%s) = "Loot : %s"
 (%s)'s Pet = "%s's Pet"
 (%s)'s Guardian = "%s's Guardian"
}
(for control) = "(%s)'s Minion"
search = "(%s)'s Minion"
replace = "%s's Minion"
ownerStrings = <table> {
 (%s)'s Minion = "%s's Minion"
 (%s)'s Totem = "%s's Totem"
 (%s)'s Companion = "%s's Companion"
 Loot: (%s) = "Loot : %s"
 (%s)'s Pet = "%s's Pet"
 (%s)'s Guardian = "%s's Guardian"
}

And variations of these when you moused over a corpse that had loot assigned to a party/raid member:

Code:
82x TooltipHideRealm\code.lua:17: bad argument #1 to 'strmatch' (string expected, got table)
[C]:: in function 'strmatch'
TooltipHideRealm\code.lua:17: in function <TooltipHideRealm\code.lua:15>
TooltipHideRealm\code.lua:34: in function <TooltipHideRealm\code.lua:28>
[C]:: ?
[C]:: ?
[C]:: ?

Locals:
t = <table>
k = "Shadow Council"
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
 (%s)'s Minion = "%s's Minion"
 (%s)'s Totem = "%s's Totem"
 (%s)'s Companion = "%s's Companion"
 Loot: (%s) = "Loot : %s"
 (%s)'s Pet = "%s's Pet"
 (%s)'s Guardian = "%s's Guardian"
}
(for control) = "(%s)'s Minion"
search = "(%s)'s Minion"
replace = "%s's Minion"
ownerStrings = <table> {
 (%s)'s Minion = "%s's Minion"
 (%s)'s Totem = "%s's Totem"
 (%s)'s Companion = "%s's Companion"
 Loot: (%s) = "Loot : %s"
 (%s)'s Pet = "%s's Pet"
 (%s)'s Guardian = "%s's Guardian"
}

And for chat:

Code:
1x ChatHideRealm\code.lua:14: unexpected symbol near ')'

Which if I had to guess, is this part of the script:

Code:
for i = 1, NUM_CHAT_WINDOWS do
	local f = _G["ChatFrame" .. i])
	orig_AddMessage[f] = f.AddMessage
	f.AddMessage = AddMessage
end
Thanks for the help, both of you.

Gryns
__________________
-- Live like a King, laugh like his Jester. --
  Reply With Quote