fCraft.IRCCommands.Privmsg C# (CSharp) Method

Privmsg() public static method

public static Privmsg ( string destination, string message ) : string
destination string
message string
return string
        public static string Privmsg( string destination, string message )
        {
            return "PRIVMSG " + destination + " :" + message;
        }

Usage Example

Example #1
0
 public static void SendChannelMessage([NotNull] string line)
 {
     if (line == null)
     {
         throw new ArgumentNullException("line");
     }
     line = Color.MinecraftToIrcColors(line);
     if (_channelName == null || !GcReady)
     {
         return; // in case IRC bot is disabled.
     }
     SendRawMessage(IRCCommands.Privmsg(_channelName, line));
 }
All Usage Examples Of fCraft.IRCCommands::Privmsg