From e3a4cc92d83042d0991940aab68a53d6b4cfbf17 Mon Sep 17 00:00:00 2001 From: Major- Date: Thu, 13 Feb 2014 17:28:49 +0000 Subject: [PATCH] Fix undefined method error. --- data/plugins/private-messaging/friend.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/plugins/private-messaging/friend.rb b/data/plugins/private-messaging/friend.rb index 12b164f7..47a6ac01 100644 --- a/data/plugins/private-messaging/friend.rb +++ b/data/plugins/private-messaging/friend.rb @@ -77,6 +77,6 @@ def update_friends(player, world=0) while iterator.has_next other = iterator.next next if other == player - other.send(SendFriendEvent.new(username, world)) if (player.friends_with(other.username) || player.private_chat_privacy == PrivacyState::ON) + other.send(SendFriendEvent.new(username, world)) if (player.friends_with(other.username) || player.friend_privacy == PrivacyState::ON) end end \ No newline at end of file