mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added an @ to PeerTube display names so it can't be used to inject a command
This commit is contained in:
@@ -79,7 +79,7 @@ public class PeerTube(ChatBot kfChatBot) : IDisposable
|
|||||||
}
|
}
|
||||||
|
|
||||||
persistedLive.Add(stream.Uuid);
|
persistedLive.Add(stream.Uuid);
|
||||||
await kfChatBot.SendChatMessageAsync($"{stream.Account.DisplayName} is live! {stream.Name} {stream.Url}", true);
|
await kfChatBot.SendChatMessageAsync($"@{stream.Account.DisplayName} is live! {stream.Name} {stream.Url}", true);
|
||||||
|
|
||||||
if (settings[BuiltIn.Keys.CaptureEnabled].ToBoolean())
|
if (settings[BuiltIn.Keys.CaptureEnabled].ToBoolean())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user