mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-07 16:49:12 +00:00
Fix private messaging issue #57 https://github.com/apollo-rsps/apollo/issues/57
This commit is contained in:
@@ -6,7 +6,7 @@ java_import 'org.apollo.game.model.entity.setting.PrivacyState'
|
|||||||
|
|
||||||
on :message, :private_chat do |ctx, player, message|
|
on :message, :private_chat do |ctx, player, message|
|
||||||
friend = $world.get_player(message.username)
|
friend = $world.get_player(message.username)
|
||||||
friend.send(ForwardPrivateChatMessage.new(player.username, player.privilege_level, message.compressed_message)) if interaction_permitted(player, friend)
|
friend.send(ForwardPrivateChatMessage.new(player.username, player.privilege_level, message.compressed_chat)) if interaction_permitted(player, friend)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Checks if the sender is permitted to interact with the friend they have added:
|
# Checks if the sender is permitted to interact with the friend they have added:
|
||||||
|
|||||||
Reference in New Issue
Block a user