static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); string query = rmsg.Remove(0, 11).Replace("\0", "").Trim(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (rnick == ObsidFunc.ownernick() && nickuser == true) { string[] findFind = Regex.Split(query, "find("); string findStrings = findFind[1].Split(')')[0]; string[] find = findStrings.Split(';'); string[] replaceFind = Regex.Split(query, "replace("); string replaceStrings = replaceFind[1].Split(')')[0]; string[] replace = replaceStrings.Split(';'); string[] batchFind = Regex.Split(query, "batch("); string batchStrings = batchFind[1].Split(')')[0]; Console.WriteLine("PRIVMSG " + channel + " :" + ObsidFunc.batchExec(batchStrings, find, replace)); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient Permissions!"); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); if (ObsidFunc.isOperator == true) { string query = rmsg.Remove(0, 8); bool nickisuser = ObsidFunc.isActiveUser(rnick); if (nickisuser == true) { Console.WriteLine("MODE " + channel + " +o " + query); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (nickuser == true) { System.IO.File.Delete("registers.bin"); System.IO.StreamWriter sw = new System.IO.StreamWriter("registers.bin"); sw.Write("|"); sw.Close(); Console.WriteLine("PRIVMSG " + channel + " :Cleared!"); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); string query = rmsg.Remove(0, 13); if (nickuser == true) { if (query.Contains("true")) { ObsidFunc.spamTrue(); Console.WriteLine("PRIVMSG " + channel + " :spamControl = true"); } else if (query.Contains("false")) { ObsidFunc.spamFalse(); Console.WriteLine("PRIVMSG " + channel + " :spamControl = false"); } } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (nickuser == true) { string query = rmsg.Remove(0, 14); string[] blacklist = ObsidFunc.addBlacklist(query); string newlist = String.Join(":", blacklist); Console.WriteLine("PRIVMSG " + channel + " :" + newlist); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); if (ObsidFunc.isOperator == true) { string query = rmsg.Remove(0, 6); bool nickuser = ObsidFunc.isActiveUser(rnick); if (nickuser == true) { Console.WriteLine("KICK " + channel + " " + query + " User-requested kick"); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; //try //{ ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (nickuser == true) { System.IO.StreamReader sr = new System.IO.StreamReader("messages.bin"); string messageread = sr.ReadToEnd(); sr.Close(); Console.WriteLine("PRIVMSG " + rnick + " :" + messageread.Trim()); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } //} //catch (Exception ex) //{ //Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); //} }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (nickuser == true) { System.IO.File.Delete("registers.bin"); System.IO.StreamWriter sw = new System.IO.StreamWriter("registers.bin"); sw.Write("|"); sw.Close(); Console.WriteLine("PRIVMSG " + channel + " :Cleared!"); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); string query = rmsg.Remove(0, 7); bool nickuser = ObsidFunc.isActiveUser(rnick); if (rnick == ObsidFunc.ownernick() && nickuser == true) { ObsidFunc.batch(query); Console.WriteLine("PRIVMSG " + channel + " :Success!"); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient Permissions!"); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (nickuser == true) { System.IO.StreamReader sr = new System.IO.StreamReader("registers.bin"); string[] regusersarray = sr.ReadToEnd().Split('|'); string regusers = regusersarray[0]; sr.Close(); if (regusers == "" | regusers == null) { regusers = "None"; } Console.WriteLine("PRIVMSG " + channel + " :" + regusers); } else { Console.WriteLine("PRIVMSG " + channel + " :" + "Insufficient permissions!"); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); string query = rmsg.Remove(0, 13); if (nickuser == true) { if (query.Contains("true")) { ObsidFunc.spamTrue(); Console.WriteLine("PRIVMSG " + channel + " :spamControl = true"); } else if (query.Contains("false")) { ObsidFunc.spamFalse(); Console.WriteLine("PRIVMSG " + channel + " :spamControl = false"); } } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (nickuser == true) { System.IO.StreamReader sr = new System.IO.StreamReader("registers.bin"); string[] regusersarray = sr.ReadToEnd().Split('|'); string regusers = regusersarray[0]; sr.Close(); if (regusers == "" | regusers == null) { regusers = "None"; } Console.WriteLine("PRIVMSG " + channel + " :" + regusers); } else { Console.WriteLine("PRIVMSG " + channel + " :" + "Insufficient permissions!"); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (nickuser == true) { string query = rmsg.Remove(0, 17); string[] blacklist = ObsidFunc.removeBlacklist(query); string newlist = String.Join(":", blacklist); if (newlist == null || newlist == "") { newlist = "None"; } Console.WriteLine("PRIVMSG " + channel + " :" + newlist); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); string query = rmsg.Remove(0, 11).Replace("\0", "").Trim(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (rnick == ObsidFunc.ownernick() && nickuser == true) { Console.WriteLine("PRIVMSG " + channel + " :" + ObsidFunc.CSCompile(query)); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient Permissions!"); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; ObsidianFunctions.Functions Obsid = new ObsidianFunctions.Functions(); try { string query = rmsg.Remove(0, 12); if (query == "true") { bool nickuser = Obsid.isActiveUser(rnick); if (nickuser == true) { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); ObsidFunc.opTrue(); Console.WriteLine("PRIVMSG " + channel + " :isOperator = true"); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient Permissions!"); } } else if (query == "false") { bool nickuser = Obsid.isActiveUser(rnick); if (nickuser == true) { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); ObsidFunc.opFalse(); Console.WriteLine("PRIVMSG " + channel + " :isOperator = false"); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient Permissions!"); } } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; ObsidianFunctions.Functions Obsid = new ObsidianFunctions.Functions(); try { string query = rmsg.Remove(0, 12); if (query == "true") { bool nickuser = Obsid.isActiveUser(rnick); if (nickuser == true) { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); ObsidFunc.opTrue(); Console.WriteLine("PRIVMSG " + channel + " :isOperator = true"); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient Permissions!"); } } else if (query == "false") { bool nickuser = Obsid.isActiveUser(rnick); if (nickuser == true) { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); ObsidFunc.opFalse(); Console.WriteLine("PRIVMSG " + channel + " :isOperator = false"); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient Permissions!"); } } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); if (ObsidFunc.isActiveUser(rnick) == true) { string query = rmsg.Remove(0, 9).Trim(); Console.WriteLine(ObsidFunc.jarExec(query, channel, rnick, rmsg)); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { string query = rmsg.Remove(0, 5); if (query == "start") { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (nickuser == true) { ObsidFunc.logTrue(); Console.WriteLine("PRIVMSG " + channel + " :Log = true"); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } else if (query == "stop") { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (nickuser == true) { ObsidFunc.logFalse(); Console.WriteLine("PRIVMSG " + channel + " :Log = false"); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { string query = rmsg.Remove(0, 5); if (query == "start") { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (nickuser == true) { ObsidFunc.logTrue(); Console.WriteLine("PRIVMSG " + channel + " :Log = true"); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } else if (query == "stop") { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (nickuser == true) { ObsidFunc.logFalse(); Console.WriteLine("PRIVMSG " + channel + " :Log = false"); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); if (ObsidFunc.isActiveUser(rnick) == true) { string query = rmsg.Remove(0, 10).Trim(); Console.WriteLine(ObsidFunc.classExec(query, channel, rnick, rmsg)); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); if (rnick == ObsidFunc.ownernick() && ObsidFunc.isActiveUser(rnick) == true) { string query = rmsg.Remove(0, 9).Trim(); string[] qSplit = query.Split(' '); string file = qSplit[0].Remove(0, 1) + ".exe"; Console.WriteLine(ObsidFunc.exeExec(file, channel, rnick, query)); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (nickuser == true) { FervorLibrary.Library FervLib = new FervorLibrary.Library(); string query = rmsg.Remove(0, 10); if (query == "true") { FervLib.greetTrue(); Console.WriteLine("PRIVMSG " + channel + " :Success!"); } else if (query == "false") { FervLib.greetFalse(); Console.WriteLine("PRIVMSG " + channel + " :Success!"); } else { Console.WriteLine("PRIVMSG " + channel + " :Invalid Input"); } } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); if (rnick == ObsidFunc.ownernick() && ObsidFunc.isActiveUser(rnick) == true) { string query = rmsg.Remove(0, 9).Trim(); string[] qSplit = query.Split(' '); string file = qSplit[0].Remove(0, 1) + ".exe"; Console.WriteLine(ObsidFunc.exeExec(file, channel, rnick, query)); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickuser = ObsidFunc.isActiveUser(rnick); if (nickuser == true) { FervorLibrary.Library FervLib = new FervorLibrary.Library(); string query = rmsg.Remove(0, 10); if (query == "true") { FervLib.greetTrue(); Console.WriteLine("PRIVMSG " + channel + " :Success!"); } else if (query == "false") { FervLib.greetFalse(); Console.WriteLine("PRIVMSG " + channel + " :Success!"); } else { Console.WriteLine("PRIVMSG " + channel + " :Invalid Input"); } } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }
static void Main(string[] args) { string channel = args[0]; string rnick = args[1]; string rmsg = args[2]; try { ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions(); bool nickisuser = ObsidFunc.isActiveUser(rnick); if (nickisuser == true) { Console.WriteLine("QUIT"); } else { Console.WriteLine("PRIVMSG " + channel + " :Insufficient permissions!"); } } catch (Exception ex) { Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString()); } }