All pastes #126862 Raw Edit

Mine

public text v1 · immutable
·published 2006-08-11 21:27 UTC
rendered paste body
End of UNBIND Script v-v (Below)

var %p 1
while (%p <= $gettok($readini(Settings.ini,$chan,Commands),0,32)) {
  if ($2 == $gettok($readini(Settings.ini,$chan,Commands),%p,32)) {
    if ($gettok($readini(Settings.ini,$chan,Commands),0,32) > 1) {
      writeini Settings.ini $chan Commands $deltok($readini(Settings.ini,$chan,Commands),%p,32)
      remini Settings.ini $chan $2
      notice $nick Commands  $+ $2 $+  has been removed!
    }
    else {
      remini Settings.ini $chan Commands
      remini Settings.ini $chan $2
      notice $nick Commands  $+ $2 $+  has been removed!
    }
  }
  inc %p
}

_____________________________________________

Command Alias Script v-v (Below)

alias commands {
  if (!$readini(Settings.ini,%chan,Commands)) {
    return Commands Not Setup! Use $readini(Settings.ini,$chan,Trigger) $+ bind To Add Commands
    halt
  }
  else {
    var %p 1
    while (%p <= $gettok($readini(Settings.ini,%chan,Commands),0,32)) {
      set -u2 %commands. $+ %chan %commands. [ $+ [ %chan ] ] $readini(Settings.ini,%chan,Trigger) $+ $gettok($readini(Settings.ini,%chan,Commands),%p,32)
      inc %p
    }
    return %commands. [ $+ [ %chan ] ]
  }
}