Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (typeBox.Text.Substring(0, 1) == "/" && typeBox.Text != "") // command
  2.                     {
  3.                         String s = typeBox.Text.Substring(1).ToLower();
  4.                         if (s == "help")
  5.                         {
  6.                             //users
  7.                             msg("/users - gives a list of all the users ever to connect "
  8.                             + "to this Lightchat server", "", NOFORMAT);
  9.  
  10.                             //log
  11.                             msg("/log -u -d -t" + Environment.NewLine
  12.                                 + "-u Mr.Smith,Tom" + Environment.NewLine
  13.                                 + "-d 21/1/2011*22/1/2011,15/9/2010*17/9/2010 ('*' gives dates ranging from "
  14.                                 + "the first one specified and the second one specified ',' (comma) lets you "
  15.                                 + "add additional dates or ranges)" + Environment.NewLine
  16.                                 + "-t 21.30*22.45, 00.30*01.45 (see: -d)"
  17.                                 , "", NOFORMAT);
  18.                         }
  19.                         else if (s.Substring(0, 3) == "log")
  20.                         {
  21.                             send(s.Substring(3), LOG);
  22.                         }
  23.                         else if (s.Substring(0,4) == "join")  
  24.                         {
  25.                             String channelname = "";
  26.                             String pw = "¤";
  27.                             send(channelname + ";" + pw, JOINCHANNEL);
  28.                         }
  29.                         else if (s.Substring(0,6) == "create")
  30.                         {
  31.                             String channelname = "";
  32.                             String pw = "¤";
  33.                             send(channelname + ";" + pw, CREATECHANNEL);
  34.                         }
  35.                         else if (s.Substring(0,5) == "leave")
  36.                         {
  37.                             String channelname = "";
  38.                             send(channelname, LEAVECHANNEL);
  39.                         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement