Example #1
0
        private void OnServerFullyConnected(IRCConnection connection)
        {
            if (iceChatOptions.AutoAway && iceChatOptions.AutoAwayTime > 0)
            {
                connection.SetAutoAwayTimer(iceChatOptions.AutoAwayTime);
            }
            else
                connection.DisableAutoAwayTimer();

            if (iceChatOptions.SystemTrayServerMessage == true && iceChatOptions.SystemTrayServerMessage)
            {
                if (connection.ServerSetting.RealServerName.Length > 0)
                    ShowTrayNotification("You have connected to " + connection.ServerSetting.RealServerName + " as " + connection.ServerSetting.CurrentNickName);
                else
                    ShowTrayNotification("You have connected to " + connection.ServerSetting.ServerName + " as " + connection.ServerSetting.CurrentNickName);
            }
        }