code: function parseMessage(line) { // {{{
    var message = {};
    var match;
  
    // Parse prefix
    if (match = line.match(/^:([^ ]+) +/)) {
      message.prefix = match[1];
      line = line.replace(/^:[^ ]+ +/, '');
      if (match = message.prefix.match(/^([_a-zA-Z0-9\[\]\\`^{}|-]*)(!([^@]+)@(.*))?$/)) {
        message.nick = match[1];
        message.user = match[3];
        message.host = match[4];
      }
      else
        message.server = message.prefix;
    }
  
    // Parse command
    match = line.match(/^([^ ]+) +/);
    message.command = match[1];
    message.rawCommand = match[1];
    message.commandType = 'normal';
    line = line.replace(/^[^ ]+ +/, '');
  
    if (replyFor[message.rawCommand]) {
      message.command     = replyFor[message.rawCommand].name;
      message.commandType = replyFor[message.rawCommand].type;
    }
  
    message.args = [];
    var middle, trailing;
  
    // Parse parameters
    if (line.indexOf(':') != -1) {
      var index = line.indexOf(':');
      middle = line.substr(0, index).replace(/ +$/, "");
      trailing = line.substr(index+1);
    } else
      middle = line;
  
    if (middle.length)
      message.args = middle.split(/ +/);
  
    if (typeof(trailing) != 'undefined' && trailing.length)
      message.args.push(trailing);
  
    return message;
  }
docs: /*
  parseMessage(line)
  
  takes a raw "line" from the IRC server and turns it into an object with
  useful keys