All pastes #929456 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-05 20:02 UTC
rendered paste body
alias -l c1 { return $+($chr(3),05,$1-) }
alias -l c2 { return $+($chr(3),04,$1-) }
on $*:TEXT:/[!@]defname */Si:*: {
  if ($1 == !defname) || ($1 == @defname) {
    if ($len($2-) > 12) { notice $nick $c2($2-) $c1(is too long to be an RSN.) | halt }
    if ($2 == $null) { $c1(Specify a name.) | halt }
    else { 
      writeini Defnames.ini RSNs $mask($fulladdress,3) $replace($2-,$chr(32),-)
    }
  }
}
on $*:TEXT:/!runescapename|!rsn */Si:*: {
  if ($2 == $null) { notice $nick $c1(Specify a name.) | halt }
  if ($2 !ison $chan) { msg $chan $c1(The person must be on) $c2($chan) | halt }
  notice $nick $c1(The current) $c2(Runescape Name) $c1(for) $c2($2) $c1(is) $c2($readini(Defnames.ini, RSNs, $mask($fulladdress,3)))
}