adds relay IM from bot to avatar support
This commit is contained in:
parent
93896f8a29
commit
0c2ea15f4d
1 changed files with 13 additions and 0 deletions
|
|
@ -50,6 +50,19 @@ namespace BSB.bottypes
|
|||
{
|
||||
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)
|
||||
{
|
||||
bool signed_command = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue