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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user