OpenDAoC / OpenDAoC-Core

OpenDAoC is a free Dark Age of Camelot server emulator
https://www.opendaoc.com
GNU General Public License v3.0
33 stars 21 forks source link

Fix /friend inconsistencies #3

Closed bm01 closed 2 years ago

bm01 commented 2 years ago

Currently the /friend commands has a few annoying issues:

This is fixed by first checking for friend removal, and allowing it only if their full name is used. Case insensitive. If no friend is removed, IsSameRealm() is called. If it returns false, we simply consider that no player was found, and we don't remove friends even if the name partially matches one in the list.

Then GuessClientByPlayerNameAndRealm()'s result is checked: