public void run() {
    StringTokenizer stInput = new StringTokenizer(input.getText(), "\n");
    String line;
    int lineLength;
    for (int i = 0; stInput.hasMoreTokens(); i++) {
      line = stInput.nextToken();
      lineLength = line.length();
      if (lineLength > 0) {
        if (i != 0) {
            try {
              Thread.sleep((long)(Math.pow(lineLength, 1.5) + 10*i + 1250));
            } catch (Exception exc) {
              exc.printStackTrace();
            }
          }
        }
        if (line.charAt(0) == '/') 
          mainFrame.parseCmd(line);
        else
          mainFrame.parsePrivmsg(chan, line);
    }
  }