adds relay IM from bot to avatar support

This commit is contained in:
Madpeter 2020-04-25 23:51:46 +01:00
parent 93896f8a29
commit 0c2ea15f4d

View file

@ -50,6 +50,19 @@ namespace BSB.bottypes
{ {
if (localchat == false) if (localchat == false)
{ {
if(avatar == true)
{
if(myconfig.RelayImToAvatar != UUID.Zero.ToString())
{
if (myconfig.RelayImToAvatar.Length == UUID.Zero.ToString().Length)
{
if(UUID.TryParse(myconfig.RelayImToAvatar,out UUID targetav) == true)
{
Client.Self.InstantMessage(targetav, "Relay-> "+sender_name+": " + message + "");
}
}
}
}
if (avatar == false) if (avatar == false)
{ {
bool signed_command = false; bool signed_command = false;