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); } }
public MainForm() { InitializeComponent(); form = this; }