Fix invalid cast exception in WHOX query

This commit is contained in:
Alexandre Oliveira 2017-10-13 12:34:04 -03:00
parent 68822768ca
commit 8482381463
1 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ namespace ChatSharp
/// Sends an extended WHO query asking for specific information about a single user
/// or the users in a channel, and runs a callback when we have received the response.
/// </summary>
public void Who(string target, WhoxFlag flags, WhoxField fields, Action<ExtendedWho> callback)
public void Who(string target, WhoxFlag flags, WhoxField fields, Action<List<ExtendedWho>> callback)
{
if (ServerInfo.ExtendedWho)
{
@ -174,7 +174,7 @@ namespace ChatSharp
RequestManager.QueueOperation(queryKey, new RequestOperation(whox, ro =>
{
callback?.Invoke((ExtendedWho)ro.State);
callback?.Invoke((List<ExtendedWho>)ro.State);
}));
SendRawMessage(whoQuery);
}