Exemple #1
0
 public static void CheckCmd(MainForm form)
 {
     string _data = IRCconnect._data.Remove(0,1);
     string data = _data.Substring(_data.IndexOf(IRCconnect.MainIRC.Channel[form.tabControl1.SelectedIndex] + " :") + (IRCconnect.MainIRC.Channel[form.tabControl1.SelectedIndex] + " :").Length);
     if (Properties.Settings.Default.YoutubeLinkInfo)
         YoutubeFunc.mainControl(data);
     if (data.StartsWith("!"))
     {
         if (Properties.Settings.Default.CustomCmds)
             CustomCommands.mainControl(data);
         if (Properties.Settings.Default.SpeedrunCmds)
             SpeedrunCmds.mainControl(data);
         if (Properties.Settings.Default.TwitchInfoCmds)
             TwitchInfoCmds.mainControl(data);
     }
 }
Exemple #2
0
 public MainForm()
 {
     InitializeComponent();
     form = this;
 }