private void OnDestroy()
 {
     if (_ircConnection != null)
     {
         _ircConnection.Disconnect();
     }
 }
Example #2
0
 private void OnDestroy()
 {
     if (_ircConnection != null)
     {
         _ircConnection.ColorOnDisconnect = TwitchPlaySettings.data.TwitchBotColorOnQuit;
         _ircConnection.Disconnect();
     }
 }
Example #3
0
    private bool ConnectDisconnect()
    {
        Audio.PlaySound(KMSoundOverride.SoundEffect.ButtonPress, transform);
        if (IRCConnection.Instance == null)
        {
            return(false);
        }

        if (IRCConnection.Instance.State == IRCConnectionState.Disconnected)
        {
            IRCConnection.Connect();
        }
        else
        {
            IRCConnection.Disconnect();
        }

        return(false);
    }