Update Chat.cs
This commit is contained in:
parent
9780b8e6cd
commit
f5e129d208
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue