mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 02:00:09 +00:00
Correct autoproxy escape character
This commit is contained in:
parent
b371c2f34d
commit
3ba6a115f0
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ namespace PluralKit.Bot
|
||||||
private async Task<ProxyMatch> GetAutoproxyMatch(IMessage message, IGuildChannel channel)
|
private async Task<ProxyMatch> GetAutoproxyMatch(IMessage message, IGuildChannel channel)
|
||||||
{
|
{
|
||||||
// For now we use a backslash as an "escape character", subject to change later
|
// For now we use a backslash as an "escape character", subject to change later
|
||||||
if ((message.Content ?? "").TrimStart().StartsWith("\"")) return null;
|
if ((message.Content ?? "").TrimStart().StartsWith("\\")) return null;
|
||||||
|
|
||||||
// Fetch info from the cache, bail if we don't have anything (either no system or no autoproxy settings - AP defaults to off so this works)
|
// Fetch info from the cache, bail if we don't have anything (either no system or no autoproxy settings - AP defaults to off so this works)
|
||||||
var autoproxyCache = await _autoproxyCache.GetGuildSettings(message.Author.Id, channel.GuildId);
|
var autoproxyCache = await _autoproxyCache.GetGuildSettings(message.Author.Id, channel.GuildId);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue