Download
(20 Kb)
Download
Updated: 03/05/20 12:43 PM
Pictures
File Info
Compatibility:
Harrowstorm (5.3.5)
Updated:03/05/20 12:43 PM
Created:02/25/20 03:23 PM
Monthly downloads:39
Total downloads:4,701
Favorites:13
MD5:
Categories:Chat Mods, Miscellaneous
Clean My Chat
Version: 1.2.0
by: Tyx [More]
Clean My Chat

by @Tyx



A small addon for Elder Scrolls Online (no affiliation), to reduce messages in unknown languages from the chat window.



It filters each message if it contains forbidden characters like Spanish ("ñ", "¿", "¡", etc.), Nordic ("ø", "å"), Slavic ("ę", "ł", "ż", etc.), French ("é", "à", "œ", etc.), German (ä, ö, ü, etc.) or Cyrillic (б", "г", "ж", etc.).

You are also able to define your own filtered words or characters. For example, it could be also used to filter swear words not detected by ESO itself.

Settings

If you have the LibAddonMenu-2.0 installed, you will have access to the settings menu to define your own filters and set or unset the filter for predefined characters.

Commands
  • /cmc main command to open setting menu or show current settings
  • /cmc filter shows the defined custom characters
  • /cmc custom toggles the custom character filter
  • /cmc cyrillic toggles the Cyrillic character filter
  • /cmc french toggles the French character filter
  • /cmc german toggles the German character filter
  • /cmc nordic toggles the Nordiccharacter filter
  • /cmc slavic toggles the Slavic character filter
  • /cmc spanish toggles the Spanish character filter
Compatability

It is tested and created to work with pChat or the default chat system.

--------------------
---- 1.2.0 ----
- Added debug command
- Added nordic filter (Danish and Norwegian)
- Added Spanish filter
- Changed hook to latest esoui functions
- Changed settings menu order and tooltips
- Removed large characters from alphabet for optimization
- Improved command output
- Imprived German filter
- Fixed empty statistics menü
- Fixed in-game mail feedback
--------------------
---- 1.1.2 ----
- Changed functions to work again with ESO Update 3.5.3
--------------------
---- 1.1.1 ----
- Changed internal functions to work better with other addons
--------------------
---- 1.1.0 ----
- Added Slavic filter
- Added Channel specific filters
- Added statistics to settings menu
- Fixed issue that the name was filtered not the message
- Implemented pChat compatibility
- Implemented LibDebugLogger
--------------------
Optional Files (0)


Archived Files (3)
File Name
Version
Size
Uploader
Date
1.1.2
19kB
Tyx
03/02/20 11:51 AM
1.1.0
19kB
Tyx
02/26/20 01:28 PM
1.0.0
16kB
02/25/20 03:23 PM


Post A Reply Comment Options
Unread 02/25/23, 04:49 AM  
Tyx
 
Tyx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 83
Uploads: 6
Re: Chinese

Originally Posted by pixiehouse
Hi and thank you for this absolutely great addon.

Recently, Chinese has started to appear in the chat.

It would be great, if it was also possible to filter out Chinese characters.

Have a good one

Hi, glad to hear you like this addon.


The game lost me for a while, so I don't update any addons anymore, but you should be able to easily create this filter yourself:
Just find the most used Chinese characters, e.g., from this site, and create a custom filter from them. In the setting, paste the characters separated by a comma. If you see a Chinese message again, copy a new character from this message. In time, your filter will grow and block all Chinese messages.


Best of luck.
Report comment to moderator  
Reply With Quote
Unread 02/25/23, 02:47 AM  
pixiehouse

Forum posts: 0
File comments: 1
Uploads: 0
Chinese

Hi and thank you for this absolutely great addon.

Recently, Chinese has started to appear in the chat.

It would be great, if it was also possible to filter out Chinese characters.

Have a good one
Report comment to moderator  
Reply With Quote
Unread 06/14/20, 08:35 AM  
Jojoeso
 
Jojoeso's Avatar

Forum posts: 0
File comments: 44
Uploads: 0
Above 1000 cyrillic messages blocked !

Report comment to moderator  
Reply With Quote
Unread 04/08/20, 03:24 PM  
HowellQagan
 
HowellQagan's Avatar

Forum posts: 11
File comments: 437
Uploads: 0
Hell yes. First thing I did was:

Lua Code:
  1. ["customFilter"] =
  2.                 {
  3.                     [1] = "+dolmen",
  4.                     [2] = "dolmen+",
  5.                     [3] = "+dolemn",
  6.                     [4] = "dolemn+",
  7.                 },

Thanks for this. And it's even non-case-sensitive.
It's kinda weird that it doesn't filter out chat lines that contain these things if it's me posting it.
Also a remark: it doesn't notify the user they have to reload the UI to make the filtering changes apply (i.e. saving it to the vars).
Pity it doesn't allow whitespaces though, because sometimes the brainlets type "+ dolmen" and similar things but it's still better than not blocking them at all I guess. My old method (basically Xerton's Cyrillic Chat Filter having phrases added) of blocking them broke unfortunately
Last edited by HowellQagan : 04/09/20 at 09:14 AM.
Report comment to moderator  
Reply With Quote
Unread 03/07/20, 03:17 PM  
Jojoeso
 
Jojoeso's Avatar

Forum posts: 0
File comments: 44
Uploads: 0
Senerity ....

Report comment to moderator  
Reply With Quote
Unread 03/03/20, 05:37 AM  
Tyx
 
Tyx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 83
Uploads: 6
Good idea. It is no longer used so often in German, but should definitely be added to the list.
Report comment to moderator  
Reply With Quote
Unread 03/03/20, 04:10 AM  
Jojoeso
 
Jojoeso's Avatar

Forum posts: 0
File comments: 44
Uploads: 0
Do you plan to add the "ß" in the default forbidden german characters ?
Report comment to moderator  
Reply With Quote
Unread 03/02/20, 11:56 AM  
Tyx
 
Tyx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 83
Uploads: 6
Originally Posted by wyvie
Getting this after addon update today when my UI loads.

Thank you for the report. Worst timing with my update yesterday
Next update is out. It should work again.
Report comment to moderator  
Reply With Quote
Unread 03/02/20, 11:12 AM  
wyvie

Forum posts: 0
File comments: 3
Uploads: 0
user:/AddOns/CleanMyChat/Lib/CleanMyChat.lua:283: function expected instead of nil
stack traceback:
user:/AddOns/CleanMyChat/Lib/CleanMyChat.lua:283: in function 'CleanMyChat:RegisterEvent'
user:/AddOns/CleanMyChat/Lib/CleanMyChat.lua:535: in function 'CleanMyChat:Initialize'
user:/AddOns/CleanMyChat/Lib/CleanMyChat.lua:546: in function '(anonymous)'
Getting this after addon update today when my UI loads.
Report comment to moderator  
Reply With Quote
Unread 03/01/20, 08:11 AM  
Tyx
 
Tyx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 83
Uploads: 6
Originally Posted by FWSWBN
Thx, working (for me).
I dont see any cyrillic letters in my chat.
Also no errors anymore (lua).

thx for the fix


EDIT:
also whisper works without any errors or problems <--- only for info

(german client and german language and also some other languages (I speak much more than one).


EDIT 2:
@Baetram..... I use it with pchat and wykkyd enhanced chat <--- only for info
That's good to know. Thanks for the feedback. It seems that the error is only thrown if you are using an unmodified chat system and working well with pChat. I will soon upload an update with a fix for the whisper error and change an internal function to hook into pChat instead of overwriting it. Hopefully it will still work for you afterwards.

Originally Posted by wyvie
Everything works for me, cyrillic it completely blocked, but when somebody whispers me, I get popup with following error.
Thank you very much for the report. It has something to do with the last update of ESO, which overhauled the internal chat system. I am trying to fix this right now. I will update it as soon as I am satisfied with the correction.
Report comment to moderator  
Reply With Quote
Unread 02/29/20, 10:57 AM  
wyvie

Forum posts: 0
File comments: 3
Uploads: 0
Everything works for me, cyrillic it completely blocked, but when somebody whispers me, I get popup with following error.

EsoUI/Ingame/ChatSystem/Keyboard/KeyboardChatSystem.lua:407: Attempt to access a private function 'FlashTaskbarWindow' from insecure code. The callstack became untrusted 4 stack frame(s) from the top.
stack traceback:
EsoUI/Ingame/ChatSystem/Keyboard/KeyboardChatSystem.lua:407: in function 'ZO_ChatSystem:OnFormattedChatMessage'
EsoUI/Ingame/ChatSystem/SharedChatSystem.lua:1447: in function 'OnFormattedChatMessage'
EsoUI/Libraries/Utility/ZO_CallbackObject.lua:116: in function 'ZO_CallbackObject:FireCallbacks'
EsoUI/Ingame/ChatSystem/ChatHandlers.lua:213: in function 'OnChatEvent'
(tail call): ?
Report comment to moderator  
Reply With Quote
Unread 02/29/20, 06:29 AM  
FWSWBN
 
FWSWBN's Avatar

Forum posts: 17
File comments: 490
Uploads: 0
Originally Posted by Tyx
Updated version is now online. It should work now. I tested it half the day and it successfully hide any messages with unwanted characters from the normal chat and pChat.
Thx, working (for me).
I dont see any cyrillic letters in my chat.
Also no errors anymore (lua).

thx for the fix


EDIT:
also whisper works without any errors or problems <--- only for info

(german client and german language and also some other languages (I speak much more than one).


EDIT 2:
@Baetram..... I use it with pchat and wykkyd enhanced chat <--- only for info
Last edited by FWSWBN : 02/29/20 at 06:33 AM.
Report comment to moderator  
Reply With Quote
Unread 02/28/20, 04:14 AM  
Tyx
 
Tyx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 83
Uploads: 6
Originally Posted by Baertram
This sounds like overwriting the chat stuff in total, otherwise I couldn't think of a proper way to intercept all messages I bet you raise more trouble with this then
You're probably right. Everything feels so hacky and insecure when there is no real testing possibility and no documentation. I will implement it with the hook, as you have previously said. This should do the job nicely without affecting your fantastic addon too much. After testing it looks like it works well with the history function as well. But if a message has already been saved, it won't be filtered again and therefore displayed.
Originally Posted by Baertram
Currently ZOs introduced some problems to the chat so that formatters and other events are not working properly for multiple addons.
I noticed. I guess I choose the worst moment to create a chat addon

It is also very annoying that I can't find a way to hook to the normal chat function, called by the "ChatRouter" event, without reregistering it. It should be possible from what I understand, but for some reason, possibly from my lack of understanding hooks or the eso code base, the hook doesn't get called:
Lua Code:
  1. -- module esoui.ingame.chatsystem.chathandlers
  2. self.registeredEventHandlers[eventCode] = OnChatEvent
  3. EVENT_MANAGER:RegisterForEvent("ChatRouter", eventCode, OnChatEvent)
  4.  
  5.  
  6. -- my hook which doesn't work
  7. ZO_PreHook(CHAT_ROUTER.registeredEventHandlers, EVENT_CHAT_MESSAGE_CHANNEL, function(...)
  8.         return self:MessageNeedsToBeRemoved(nil, ...)
  9.     end)


Originally Posted by Jojoeso
I get this error message each time someone whispers to me
Thank you very much for reporting this.
It seems to be due to some API changes in the last ESO update. I will try to circumvent this in some way in the next update.
Report comment to moderator  
Reply With Quote
Unread 02/28/20, 01:34 AM  
Jojoeso
 
Jojoeso's Avatar

Forum posts: 0
File comments: 44
Uploads: 0
I get this error message each time someone whispers to me


https://imgur.com/a/i5rSCXa
Last edited by Jojoeso : 02/28/20 at 01:35 AM.
Report comment to moderator  
Reply With Quote
Unread 02/27/20, 08:54 PM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4913
File comments: 5990
Uploads: 78
Originally Posted by Tyx
so that every chat broadcast is intercepted
This sounds like overwriting the chat stuff in total, otherwise I couldn't think of a proper way to intercept all messages I bet you raise more trouble with this then

btw:
Currently ZOs introduced some problems to the chat so that formatters and other events are not working properly for multiple addons. This most likely results in multiple chat addons having trouble using the same events (formatters, group left, joined, etc.).
I hope they will fix this soon. Otherwise each addon will overwrite the other again, and only 1 may work properly.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.