API C FriendList.SetWhoToUi

Sets how the result of a /who request will be handled.

C_FriendList.SetWhoToUi(whoToUi)

Arguments

 * whoToUi : Boolean:
 * if true, the results will always be delivered as a event.
 * if false (default behavior), the results may be returned as a sequence of CHAT_MSG_SYSTEM events (up to 3 results) or a WHO_LIST_UPDATE event (4+ results).

Details

 * The /who query is subject to a server-side throttle; throttled requests are silently dropped.
 * This setting does not persist between relog/reload.
 * The  will automatically display open to display the results when the WHO_LIST_UPDATE event is triggered. You may hide the frame using   (protected during combat lockdown), or temporarily unregister it from WHO_LIST_UPDATE to prevent this behavior if your addon relies on performing /who queries in the background.