Fix MuteNewGuild
This commit is contained in:
parent
23963f40c2
commit
09a922a01c
1 changed files with 4 additions and 4 deletions
|
@ -45,16 +45,16 @@ export default definePlugin({
|
||||||
authors: [Devs.Glitch, Devs.Nuckyz, Devs.carince],
|
authors: [Devs.Glitch, Devs.Nuckyz, Devs.carince],
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: ",acceptInvite:function",
|
find: ",acceptInvite(",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /INVITE_ACCEPT_SUCCESS.+?;(\i)=null.+?;/,
|
match: /INVITE_ACCEPT_SUCCESS.+?,(\i)=null!==.+?;/,
|
||||||
replace: (m, guildId) => `${m}$self.handleMute(${guildId});`
|
replace: (m, guildId) => `${m}$self.handleMute(${guildId});`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
find: "{joinGuild:function",
|
find: "{joinGuild:",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /guildId:(\w+),lurker:(\w+).{0,20}\)}\)\);/,
|
match: /guildId:(\i),lurker:(\i).{0,20}}\)\);/,
|
||||||
replace: (m, guildId, lurker) => `${m}if(!${lurker})$self.handleMute(${guildId});`
|
replace: (m, guildId, lurker) => `${m}if(!${lurker})$self.handleMute(${guildId});`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue