1. #1

    any way to get rid of servernames in emotes?

    Jimmy-BurningLegion hugs Joan-LightningsBlade just looks very silly imo.

    don't need them in raid frames either, just tooltip will do.

    i found an addon (phanxchat) that cleans them up from chat but can't find anything for emotes/raid frames.

    (shit, probably should go to interface and macros forum)
    Last edited by Joey Ray III; 2014-01-26 at 06:49 PM.


  2. #2
    Free Food!?!?! Tziva's Avatar
    10+ Year Old Account
    Join Date
    Apr 2010
    Location
    Cretaceous Period
    Posts
    22,827
    I don't know the answer, but I moved ya to Interface & Macros.

    Good luck!


    for moderation questions/concerns, please contact a global:

    TzivaRadux SimcaElysiaZaelsinoxskarmaVenara

    | twitch | bsky
    |

  3. #3
    Deleted
    Try this:

    Code:
    local function c(n) return n:match("^([^%-]+)%-") or n end
    ChatFrame_AddMessageEventFilter("CHAT_MSG_EMOTE",function(self,event,msg,send,lang,chan,target,...)
        return false, msg, c(send), lang, chan, c(target), ...
    end)
    How to use. Untested.

  4. #4
    doesn't seem to work. i followed the instructions and the addon loads but i still see server names.


  5. #5
    Replace "CHAT_MSG_EMOTE" with "CHAT_MSG_TEXT_EMOTE", I believe that's what the event is called.

    Edit: After taking a closer look at the code this seems to do the trick for me:

    Code:
    local function c(n) return n:gsub("%'%a*",""):gsub("%-%a*","") end
    ChatFrame_AddMessageEventFilter("CHAT_MSG_TEXT_EMOTE",function(self,event,msg,send,lang,chan,target,...)
       return false, c(msg), c(send), lang, chan, c(target), ...
    end)
    (Although it could turn out to be even more complicated, if there are hyphens or apostrophes in the actual emote text).
    Last edited by Crudor; 2014-01-27 at 01:05 PM.

  6. #6
    Deleted
    Are we talking about custom emotes using /me, or premade emotes (like /hug)?

  7. #7
    Quote Originally Posted by Crudor View Post
    Replace "CHAT_MSG_EMOTE" with "CHAT_MSG_TEXT_EMOTE", I believe that's what the event is called.

    Edit: After taking a closer look at the code this seems to do the trick for me:

    (Although it could turn out to be even more complicated, if there are hyphens or apostrophes in the actual emote text).
    that worked, thx both of you.

    can this possibly mess up custom emotes if people use hyphens/apostrophes?

    Quote Originally Posted by Treeston View Post
    Are we talking about custom emotes using /me, or premade emotes (like /hug)?
    both. i want them server names out of my chat ;p


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •