Merge pull request #88 from RockyTV/caps

Fix invalid cast exception in WHOX query
This commit is contained in:
Drew DeVault 2017-10-13 11:34:56 -04:00 committed by GitHub
commit f0ffe47b67
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);
}