All pastes #130602 Raw Edit

Miscellany

public text v1 · immutable
#130602 ·published 2006-08-14 02:54 UTC
rendered paste body
if ($1 == $gettok($dll(mysql.dll,fetchrow,mysql 1),6,32) $+ bots) {
    echo -a $mysql(query,mysql SELECT `auth` FROM `auth` WHERE `address` = ' $+ $address($nick,2) $+ ')
    if ($gettok($mysql(query,mysql SELECT `auth` FROM `staff` WHERE `auth` = ' $gettok($mysql(fetchrow,mysql 1),6,32) $+ '),2,32) == 022) {
      if ($4) && ($3 isnum) {
        bots $2 $3 $4 $iif($5,$v1)
        .notice $nick Connecting $3 ( $+ $2 $+ 's $+ ) to server: $4 $iif($5,$v1,6667)
      }
      else {
        echo -a $mysql(query,mysql SELECT `trigger` FROM `channels` WHERE `channel` = ' $+ $esc($chan) $+ ')
        .notice $nick Usage: $gettok($mysql(fetchrow,mysql 1),6,32) $+ bots <botnicks> <#ofbots> <server> <port>
      }
    }
    else {
      .notice $nick Error: Staff access required.
    }
  }