mirror of
https://github.com/SWG-Source/stationapi.git
synced 2026-07-14 23:07:34 -04:00
Ignore messages if the srcAvatar is on destAvatar's ignore list.
This commit is contained in:
@@ -24,5 +24,9 @@ SendInstantMessage::SendInstantMessage(
|
||||
throw ChatResultException(ChatResultCode::DESTAVATARDOESNTEXIST);
|
||||
}
|
||||
|
||||
if (destAvatar->IsIgnored(srcAvatar)) {
|
||||
throw ChatResultException(ChatResultCode::IGNORING);
|
||||
}
|
||||
|
||||
client->SendInstantMessageUpdate(srcAvatar, destAvatar, request.message, request.oob);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user