From f5e129d2083a3da06384f8d8aa44e95b092c8f38 Mon Sep 17 00:00:00 2001 From: Madpeterz <57852827+Madpeterz@users.noreply.github.com> Date: Sun, 21 Feb 2021 02:20:22 +0000 Subject: [PATCH] Update Chat.cs --- Core/Commands/Chat.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Commands/Chat.cs b/Core/Commands/Chat.cs index b0a249d..4802d50 100644 --- a/Core/Commands/Chat.cs +++ b/Core/Commands/Chat.cs @@ -37,7 +37,7 @@ namespace BetterSecondBot.HttpService [Route(HttpVerbs.Post, "/Say/{channel}/{token}")] public object Say(string channel,[FormField] string message,string token) { - if (tokens.Allow(token, "chat", "localchatsay", handleGetClientIP()) == false) + if (tokens.Allow(token, "chat", "Say", handleGetClientIP()) == false) { return BasicReply("Token not accepted"); } @@ -67,7 +67,7 @@ namespace BetterSecondBot.HttpService [Route(HttpVerbs.Post, "/IM/{avatar}/{token}")] public object IM(string avatar, [FormField] string message, string token) { - if (tokens.Allow(token, "chat", "im", handleGetClientIP()) == false) + if (tokens.Allow(token, "chat", "IM", handleGetClientIP()) == false) { return BasicReply("Token not accepted"); }