All pastes #929472 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-05 20:13 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 ($len($2-) > 12) { notice $nick $c2($2-) $c1(is too long to be an RSN.) | halt }
  if ($2 == $null) { $c1(Specify a name.) | halt }
  writeini -n Defnames.ini RSNs $address($2-,2) $2-
}
on $*:TEXT:!rsn*:*: {
  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, $address($2-,2)))
}