Beispiel #1
0
 static void Main(string[] args)
 {
     string channel = args[0];
     string rnick = args[1];
     string rmsg = args[2];
     try
     {
         string query = rmsg.Remove(0, 6);
         ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions();
         string hash = ObsidFunc.sha1calc(query);
         Console.WriteLine("PRIVMSG " + channel + " :" + hash);
     }
     catch (Exception ex)
     {
         Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString());
     }
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            string channel = args[0];
            string rnick   = args[1];
            string rmsg    = args[2];

            try
            {
                string query = rmsg.Remove(0, 6);
                ObsidianFunctions.Functions ObsidFunc = new ObsidianFunctions.Functions();
                string hash = ObsidFunc.sha1calc(query);
                Console.WriteLine("PRIVMSG " + channel + " :" + hash);
            }
            catch (Exception ex)
            {
                Console.WriteLine("PRIVMSG " + channel + " :" + ex.ToString());
            }
        }
Beispiel #3
0
 public void generatesha1message()
 {
     string query = rmsg.Remove(0, 6);
     Functions ObsidFunc = new Functions();
     string hash = ObsidFunc.sha1calc(query);
     send("PRIVMSG " + channel + " :" + hash);
 }