Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (typeBox.Text.Substring(0, 1) == "/" && typeBox.Text != "") // command
- {
- String s = typeBox.Text.Substring(1).ToLower();
- if (s == "help")
- {
- //users
- msg("/users - gives a list of all the users ever to connect "
- + "to this Lightchat server", "", NOFORMAT);
- //log
- msg("/log -u -d -t" + Environment.NewLine
- + "-u Mr.Smith,Tom" + Environment.NewLine
- + "-d 21/1/2011*22/1/2011,15/9/2010*17/9/2010 ('*' gives dates ranging from "
- + "the first one specified and the second one specified ',' (comma) lets you "
- + "add additional dates or ranges)" + Environment.NewLine
- + "-t 21.30*22.45, 00.30*01.45 (see: -d)"
- , "", NOFORMAT);
- }
- else if (s.Substring(0, 3) == "log")
- {
- send(s.Substring(3), LOG);
- }
- else if (s.Substring(0,4) == "join")
- {
- String channelname = "";
- String pw = "¤";
- send(channelname + ";" + pw, JOINCHANNEL);
- }
- else if (s.Substring(0,6) == "create")
- {
- String channelname = "";
- String pw = "¤";
- send(channelname + ";" + pw, CREATECHANNEL);
- }
- else if (s.Substring(0,5) == "leave")
- {
- String channelname = "";
- send(channelname, LEAVECHANNEL);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement