All pastes #745117 Raw Edit

Robroy

public text v1 · immutable
·published 2007-10-22 01:50 UTC
rendered paste body
on *:Text:*define*:#: {
  if $1 == %c $+ define {
    ;if $nick !isop $chan && $level($address($nick,2)) !> 99 { halt }
    if $2 == $null { .msg $nick Command incomplete. Syntax: %c $+ define <word> | halt }
    if $exists(txt\botdef.txt) == $false { msg $chan Database does not exist. | halt }
    if $read(txt\botdef.txt,s,$2) == $null { msg $chan Sorry $nick $+ , but I can't find  $+ $2 $+ . | halt }
    msg $chan  $+ $2 $+ : $read(txt\botdef.txt,s,$2)
  }
}