Get an Epic Experience with Premium

LibChatAmbiguate

Libraries Login to Add Favorites
  • 1 Like
  • World of Warcraft
  • 23 Monthly Downloads
  • Supports: 5.4.7
  • 220 Total Downloads
  • Updated 05/15/2014
  • Created 02/21/2014
  • 1 Favorites
  • Project Site
  • Release Type: Release
  • License: CC BY-NC-SA 3.0
  • Newest File: v1.1
or

About LibChatAmbiguate

UPDATE: Project cancelled due to issues with some API (e.g. CanComplainChat) requiring the full server name of the player, which this library would break.

This library creates a chat filter for every single chat event. It calls Ambiguate(player, "none") to remove the server name from player names.

The point of this library is to have its filters be the ones that run first, so that all subsequent filters from other addons receive the player name with the server trimmed off.

This saves every single addon using chat filters from needing to trim server names to use unit functions such as UnitInRaid, UnitClass, etc, which don't work when passing player names with your *own* server name appended to it.

With any luck these unit functions will accept names with your server appended to them in a future WoW patch. If that happens, then this library can be killed off. It's an easier approach than modifying every addon using chat filters to remove any trimming functionality.

tag v1.1
997d4d6c4f8ed88306aa00044f9c2177e2da7053
funkydude <none>
2014-05-15 15:16:34 +0100

Tagging as v1.1

--------------------

funkydude:
    - kill.

Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Minecontest - Win a 2013 Minecon Cape!