Update BetterRelay.cs
code cleanup
This commit is contained in:
parent
c3514c8b89
commit
0ba5b2fc4b
1 changed files with 20 additions and 5 deletions
|
|
@ -86,11 +86,26 @@ namespace BetterSecondBot.BetterRelayService
|
||||||
List<bool> tests = new List<bool>() { have_source_type, have_source_filter, have_target_type, have_target_filter };
|
List<bool> tests = new List<bool>() { have_source_type, have_source_filter, have_target_type, have_target_filter };
|
||||||
if(tests.Contains(false) == false)
|
if(tests.Contains(false) == false)
|
||||||
{
|
{
|
||||||
if (relay.sourcename == "localchat") LocalchatRelay.Add(relay);
|
if (relay.sourcename == "localchat")
|
||||||
else if (relay.sourcename == "groupchat") GroupChatRelay.Add(relay);
|
{
|
||||||
else if (relay.sourcename == "avatarim") AvatarIMRelay.Add(relay);
|
LocalchatRelay.Add(relay);
|
||||||
else if (relay.sourcename == "objectim") ObjectIMRelay.Add(relay);
|
}
|
||||||
else if (relay.sourcename == "discord") DiscordRelay.Add(relay);
|
else if (relay.sourcename == "groupchat")
|
||||||
|
{
|
||||||
|
GroupChatRelay.Add(relay);
|
||||||
|
}
|
||||||
|
else if (relay.sourcename == "avatarim")
|
||||||
|
{
|
||||||
|
AvatarIMRelay.Add(relay);
|
||||||
|
}
|
||||||
|
else if (relay.sourcename == "objectim")
|
||||||
|
{
|
||||||
|
ObjectIMRelay.Add(relay);
|
||||||
|
}
|
||||||
|
else if (relay.sourcename == "discord")
|
||||||
|
{
|
||||||
|
DiscordRelay.Add(relay);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue