This commit is contained in:
spiral 2021-09-26 22:50:08 -04:00
parent 0517c76abf
commit fb4aaad19f
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31
5 changed files with 13 additions and 13 deletions

View File

@ -40,8 +40,8 @@ namespace PluralKit.Bot
// Skip blank tags (shouldn't ever happen in practice) // Skip blank tags (shouldn't ever happen in practice)
if (tag.Prefix == null && tag.Suffix == null) continue; if (tag.Prefix == null && tag.Suffix == null) continue;
if(tag.Prefix == "<" && prefixPattern.IsMatch(input)) continue; if (tag.Prefix == "<" && prefixPattern.IsMatch(input)) continue;
if(tag.Suffix == ">" && suffixPattern.IsMatch(input)) continue; if (tag.Suffix == ">" && suffixPattern.IsMatch(input)) continue;
// Can we match with these tags? // Can we match with these tags?
if (TryMatchTagsInner(input, tag, out result.Content)) if (TryMatchTagsInner(input, tag, out result.Content))

View File

@ -46,7 +46,7 @@ namespace PluralKit.Core
// Remove the old members from the switch // Remove the old members from the switch
await conn.ExecuteAsync("delete from switch_members where switch = @Switch", await conn.ExecuteAsync("delete from switch_members where switch = @Switch",
new {Switch = switchId}); new { Switch = switchId });
// Add the new members // Add the new members
await using (var w = conn.BeginBinaryImport("copy switch_members (switch, member) from stdin (format binary)")) await using (var w = conn.BeginBinaryImport("copy switch_members (switch, member) from stdin (format binary)"))