Hardly.Library.Twitch.TwitchIrcConnection.Reconnect C# (CSharp) Method

Reconnect() private method

private Reconnect ( ) : bool
return bool
        private bool Reconnect()
        {
            try {
                string ircServer = "irc.twitch.tv";
                if(whisperServer) {
                    ircServer = "192.16.64.180";//"199.9.253.119";
                }
                ircClient = new IrcClient(ircServer, 6667, bot.user.userName, bot.oauthPassword);

                if(whisperServer) {
                    // Enable whispers
                    ircClient.WriteLine("CAP REQ :twitch.tv/commands");
                } else {
                    // Enable join/part
                    ircClient.WriteLine("CAP REQ :twitch.tv/membership");
                }
                return true;
            } catch(Exception e) {
                Log.exception(e);
                return false;
            }
        }