Separate BlockList from BuddyList

Post here your suggestions for new possible features in SmartFoxServer.

Moderators: Lapo, Bax

User avatar
mistermind
Posts: 131
Joined: 15 Sep 2007, 01:33
Contact:

Separate BlockList from BuddyList

Postby mistermind » 16 Apr 2008, 00:25

I know they are all connected to the same tables on the embed database, but I think it would be nice to create a better approach in the code towards "blockBuddy" and "addBuddy".
Reason for that: It doesn't make much sense to add the player to your buddy list before adding it to your block list. In fact, in order to create a different approach (without making this awkward option), my block event handler goes to a small function that first add the buddy, and once its caught in the onBuddyListUpdate, automatically send them to the block list. Same way goes when removing a player from it. First remove them from block list, then from buddy list.

Would be even more interesting if there was a way for the buddy list to trigger the onBuddyListError in case you try adding a blocked buddy in your buddy list.

Hope you consider :)
SELECT * FROM users WHERE clue > 0
0 rows returned.
amenthes
Posts: 35
Joined: 22 Oct 2008, 11:55

Postby amenthes » 22 Oct 2008, 12:16

I'd like to support this proposal.

If you want to use mutual adding of buddies, the block list is currently not functional.

Return to “Features Wish List”

Who is online

Users browsing this forum: No registered users and 5 guests