Ejemplo n.º 1
0
 public static void SendChannelMessage([NotNull] string line)
 {
     if (line == null)
     {
         throw new ArgumentNullException("line");
     }
     line = Color.MinecraftToIrcColors(line);
     if (channelNames == null || !GCReady)
     {
         return; // in case IRC bot is disabled.
     }
     for (int i = 0; i < channelNames.Length; i++)
     {
         SendRawMessage(IRCCommands.Privmsg(channelNames[i], line));
     }
 }