mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-05 08:30:18 +00:00
SteamTarget: Add back the required logic
This commit is contained in:
@@ -84,7 +84,15 @@ namespace ArchiSteamFarm.NLog {
|
||||
}
|
||||
}
|
||||
|
||||
Task task = ChatGroupID == 0 ? SendPrivateMessage(message, bot) : SendGroupMessage(message, bot);
|
||||
Task task;
|
||||
|
||||
if (ChatGroupID != 0) {
|
||||
task = SendGroupMessage(message, bot);
|
||||
} else if (bot?.SteamID != SteamID) {
|
||||
task = SendPrivateMessage(message, bot);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: Rewrite this into proper AsyncTaskTarget
|
||||
task.Wait();
|
||||
|
||||
Reference in New Issue
Block a user