chat filter: add options to filter friends and clan members

Also no longer ever filter messages from the local player

Co-authored-by: Adam <Adam@sigterm.info>
This commit is contained in:
osrs-music-map
2019-05-26 10:51:56 -04:00
committed by Adam
parent 0211149ce2
commit da260fb8b2
5 changed files with 108 additions and 5 deletions

View File

@@ -189,8 +189,10 @@ CHAT_FILTER:
sload 11 ; Load the message
iconst 1 ; Gets changed to 0 if message is blocked
iload 10 ; Load the messageType
iload 9 ; Load the id of the messageNode
sconst "chatFilterCheck"
runelite_callback
pop_int ; Pop the id of the messageNode
pop_int ; Pop the messageType
iconst 1 ; 2nd half of conditional
sstore 11 ; Override the message with our filtered message

View File

@@ -359,9 +359,11 @@ CHAT_FILTER:
sload 0 ; Load the message
iconst 1 ; Gets changed to 0 if message is blocked
iload 15 ; Load the messageType
iload 12 ; Load the id of the messageNode
sconst "chatFilterCheck"
runelite_callback
pop_int ; Pop the messageType
runelite_callback
pop_int ; Pop the id of the messageNode
pop_int ; Pop the messageType
iconst 1 ; 2nd half of conditional
sstore 0 ; Override the message with our filtered message
if_icmpeq LABEL327 ; Check if we are building this message