public void OnModeChange(IrcClientOnModeEventArgs args)
 {
     foreach (ModeChange md in args.ModeChanges)
     {
         //Console.WriteLine([{3}] {0} gets {1}{2}, md.Name, md.IsAdded ? + : -, md.Mode, args.Channel);
         if (!md.IsGlobalMode && md.Mode == 'o')
         {
             string name = string.Concat(args.Channel, md.Name);
             if (md.IsAdded)
             {
                 if (!opslist.Contains(name))
                     opslist.Add(name);
             }
             else
             {
                 if (opslist.Contains(name))
                     opslist.Remove(name);
             }
         }
     }
 }
Beispiel #2
0
 void m_client_OnMode(IrcClient sender, IrcClientOnModeEventArgs args)
 {
     m_twitch_chat_manager.OnModeChange(args);
 }