Example #1
0
 private void ChannelMesseage()
 {
     Property = Input.Split(' ')[2];
     if (Property == "PRIVMSG")
         Property = Input.Split(' ')[3];
     if (!Property.StartsWith("#"))
         Property = "#" + Property;
     Type = MesseageType.Channel;
 }
Example #2
0
 private void ServerMesseage()
 {
     Type = MesseageType.Server;
     Messeage = Input.Substring(14);
     var temp = Input.Split(' ');
     int n;
     if(int.TryParse(temp[1], out n)){
         temp[0] = "";
         temp[1] = "";
         Messeage = string.Join(" ", temp).Substring(1);
     }
 }
Example #3
0
 private void Ping()
 {
     Type = MesseageType.Ping;
 }