From 848238146321fc7f5678fa63cdc58885c7c68a10 Mon Sep 17 00:00:00 2001 From: Alexandre Oliveira Date: Fri, 13 Oct 2017 12:34:04 -0300 Subject: [PATCH] Fix invalid cast exception in WHOX query --- ChatSharp/IrcClient.Commands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ChatSharp/IrcClient.Commands.cs b/ChatSharp/IrcClient.Commands.cs index ac2d379..4c07fdc 100644 --- a/ChatSharp/IrcClient.Commands.cs +++ b/ChatSharp/IrcClient.Commands.cs @@ -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. /// - public void Who(string target, WhoxFlag flags, WhoxField fields, Action callback) + public void Who(string target, WhoxFlag flags, WhoxField fields, Action> 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)ro.State); })); SendRawMessage(whoQuery); }