All pastes #130712 Raw Edit

Untitled

public text v1 · immutable
#130712 ·published 2006-08-14 04:31 UTC
rendered paste body
 if ($1 == whoami) {
    whois $nick
    set %whoami.auth $nick
    set %whoami.addr $address($nick,2)
    .timer 1 5 $!iif(%whoami.nick,.notice $nick whoami >> You must first authenticate with AuthServ/NickServ before using this command.)
  }

raw 330:*:{
  if (%whoami.auth == $2) {
    if ($gettok($mysql(query,mysql SELECT * FROM `auth` WHERE `auth` = ' $+ $3 $+ '),2,32) == 022) {
      @@$mysql(query,mysql UPDATE `auth` SET $iif($gettok($gettok($mysql(fetchrow,mysql 1 -),1,45),6,32) != $2,`Last Nick` = ' $+ $v2 $+ ' $+ $chr(44),$iif($gettok($mysql(fetchrow,mysql 1 -),2,45) != %whoami.addr,`Address` = ' $+ $v2 $+ ' $+ $chr(44),$iif($gettok($mysql(fetchrow,mysql 1 -),3,45) != $3,`Auth` = ' $+ $v2 $+ '))) $+ )
      unset %whoami.*
      .notice $2 whoami >> You, $2 ( $+ $3 $+ ) are now recognized!
    }
    else {
      $mysql(query,mysql INSERT INTO `auth` (`Last Nick`, `Address`, `Auth`) VALUES(' $+ $2 $+ ', ' $+ %whoami.addr $+ ', ' $+ $3 $+ '))
      unset %whoami.*
      .notice $2 whoami >> You, $2 ( $+ $3 $+ ) are now recognized!
    }
  }
}



ERROR:

-
0 Unknown command
-

(Also doesn't update)