~sircmpwn/ChatSharp

f0ffe47b6701f10e9b5049f3c9c1526fd4ae64cc — Drew DeVault 5 years ago 6882276 + 8482381
Merge pull request #88 from RockyTV/caps

Fix invalid cast exception in WHOX query
1 files changed, 2 insertions(+), 2 deletions(-)

M ChatSharp/IrcClient.Commands.cs
M ChatSharp/IrcClient.Commands.cs => ChatSharp/IrcClient.Commands.cs +2 -2
@@ 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);
            }