Exemplo n.º 1
0
 private void spring_PlayerSaid(object sender, SpringLogEventArgs e)
 {
     tas.GameSaid(e.Username, e.Line);
     if (config.RedirectGameChat && e.Username != tas.UserName && !e.Line.StartsWith("Allies:") && !e.Line.StartsWith("Spectators:"))
     {
         tas.Say(TasClient.SayPlace.Battle, "", "[" + e.Username + "]" + e.Line, false);
     }
 }
Exemplo n.º 2
0
        void spring_PlayerSaid(object sender, SpringLogEventArgs e)
        {
            tas.GameSaid(e.Username, e.Line);
            User us;

            tas.ExistingUsers.TryGetValue(e.Username, out us);
            bool isMuted = us != null && us.BanMute;

            if (Program.main.Config.RedirectGameChat && e.Username != tas.UserName && !e.Line.StartsWith("Allies:") &&
                !e.Line.StartsWith("Spectators:") && !isMuted)
            {
                tas.Say(SayPlace.Battle, "", "[" + e.Username + "]" + e.Line, false);
            }
        }