aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNuckyz <61953774+Nuckyz@users.noreply.github.com>2023-03-21 03:30:09 -0300
committerGitHub <noreply@github.com>2023-03-21 06:30:09 +0000
commit6f200e9218d0764555fd0e676d02b63a53702e6c (patch)
treedfb007b9920d57b134b2ea7d7e25071b82e4ff9b /src
parent586b26d2d4736e401beba41a29cf03d27e69ca7f (diff)
downloadVencord-6f200e9218d0764555fd0e676d02b63a53702e6c.tar.gz
Vencord-6f200e9218d0764555fd0e676d02b63a53702e6c.tar.bz2
Vencord-6f200e9218d0764555fd0e676d02b63a53702e6c.zip
Fix grammar and SHC patches matching wrong var (#636)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/devCompanion.dev.tsx2
-rw-r--r--src/plugins/showHiddenChannels/index.tsx8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/devCompanion.dev.tsx b/src/plugins/devCompanion.dev.tsx
index 8dbf59e..5c3c58e 100644
--- a/src/plugins/devCompanion.dev.tsx
+++ b/src/plugins/devCompanion.dev.tsx
@@ -68,7 +68,7 @@ interface FindData {
const settings = definePluginSettings({
notifyOnAutoConnect: {
- description: "Wheter to notify when Dev Companion has automatically connected.",
+ description: "Whether to notify when Dev Companion has automatically connected.",
type: OptionType.BOOLEAN,
default: true
}
diff --git a/src/plugins/showHiddenChannels/index.tsx b/src/plugins/showHiddenChannels/index.tsx
index 38ce52d..e0c1245 100644
--- a/src/plugins/showHiddenChannels/index.tsx
+++ b/src/plugins/showHiddenChannels/index.tsx
@@ -246,18 +246,18 @@ export default definePlugin({
find: ".Messages.ROLE_REQUIRED_SINGLE_USER_MESSAGE",
replacement: [
{
- // Export the channel beggining header
+ // Export the channel beginning header
match: /computePermissionsForRoles.+?}\)}(?<=function (\i)\(.+?)(?=var)/,
replace: (m, component) => `${m}$self.setChannelBeginHeaderComponent(${component});`
},
{
// Change the role permission check to CONNECT if the channel is locked
- match: /ADMINISTRATOR\)\|\|(?=(.+?\((\i),\i\.\i\.)VIEW_CHANNEL)/,
- replace: (m, permCheck, channel) => `${m}!Vencord.Webpack.Common.PermissionStore.can(${CONNECT}n,${channel})?${permCheck}CONNECT):`
+ match: /ADMINISTRATOR\)\|\|(?<=context:(\i)}.+?)(?=(.+?)VIEW_CHANNEL)/,
+ replace: (m, channel, permCheck) => `${m}!Vencord.Webpack.Common.PermissionStore.can(${CONNECT}n,${channel})?${permCheck}CONNECT):`
},
{
// Change the permissionOverwrite check to CONNECT if the channel is locked
- match: /permissionOverwrites\[.+?\?(\i):.+?\i=(?=(.+?)VIEW_CHANNEL)/,
+ match: /permissionOverwrites\[.+?\i=(?<=context:(\i)}.+?)(?=(.+?)VIEW_CHANNEL)/,
replace: (m, channel, permCheck) => `${m}!Vencord.Webpack.Common.PermissionStore.can(${CONNECT}n,${channel})?${permCheck}CONNECT):`
},
{