Exemple #1
0
        void OnLoggedOn(SteamUser.LoggedOnCallback callback)
        {
            if (callback.Result != EResult.OK)
            {
                if (callback.Result == EResult.RateLimitExceeded || callback.Result == EResult.TryAnotherCM)
                {
                    // fingers crossed
                    nextConnectDelayed = true;
                }

                Log.WriteWarn("Steam", "Unable to logon to Steam3: {0} / {1}", callback.Result, callback.ExtendedResult);

                IRC.Instance.SendEmoteToTag("steam-logon", "Unable to logon to Steam: {0} / {1}", callback.Result, callback.ExtendedResult);
                return;
            }

            loggedOn           = true;
            nextConnectDelayed = false;

            CellID = callback.CellID;

            Log.WriteInfo("Steam", "Logged onto Steam3!");

            IRC.Instance.SendEmoteToTag("steam", "Logged on to Steam! Server time: {0}", callback.ServerTime);
            ClientMsgProtobuf <CMsgClientUIMode> request = new ClientMsgProtobuf <CMsgClientUIMode>(EMsg.ClientCurrentUIMode)
            {
                Body = { chat_mode = 2 }
            };

            Client.Send(request);
            JobManager.ForceRun <GameSessionJob>();
        }
Exemple #2
0
        void OnLoggedOn(SteamUser.LoggedOnCallback callback)
        {
            if (callback.Result != EResult.OK)
            {
                Log.WriteWarn("Steam", "Unable to logon to Steam3: {0} / {1}", callback.Result, callback.ExtendedResult);

                IRC.Instance.SendEmoteToTag("steam-logon", "Unable to logon to Steam: {0} / {1}", callback.Result, callback.ExtendedResult);
                return;
            }

            loggedOn = true;

            CellID = callback.CellID;

            Log.WriteInfo("Steam", "Logged onto Steam3!");

            IRC.Instance.SendEmoteToTag("steam", "Logged on to Steam! Server time: {0}", callback.ServerTime);

            JobManager.ForceRun <GameSessionJob>();
        }