Squishy.Irc.IrcClient.OnCtcpRequest C# (CSharp) Method

OnCtcpRequest() protected method

Fires when the Client receives any kind of CTCP request. Automatically replies to the VERSION request with the content of the Version variable if not overridden.
protected OnCtcpRequest ( IrcUser user, IrcChannel chan, string request, string args ) : void
user IrcUser The User who sent the text
chan IrcChannel The Channel where it was sent (can be null)
request string The request type (such as VERSION)
args string The text which was sent in addition to the request
return void
        protected virtual void OnCtcpRequest(IrcUser user, IrcChannel chan, string request, string args)
        {
            if (request.ToUpper() == "VERSION" && Version != "")
                CommandHandler.CtcpReply(user.Nick, "VERSION", Version);
        }