Notice() public static method

public static Notice ( string destination, string message ) : string
destination string
message string
return string
Example #1
0
 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));
     }
 }