public static void SendNotice([NotNull] string line) { if (line == null) { throw new ArgumentNullException("line"); } if (channelNames == null) { return; // in case IRC bot is disabled. } if (ConfigKey.IRCUseColor.Enabled()) { line = Color.ToIRCColorCodes(line); } else { line = NonPrintableChars.Replace(line, "").Trim(); } for (int i = 0; i < channelNames.Length; i++) { SendRawMessage(IRCCommands.Notice(channelNames[i], line)); } }