!rules

!rules

Simple mIRC Snippet that displays some text from a txt file. This can be used to show network rules, help or other informations for the users.

Postat de Copyright Categorie Review user Vizualizari Data
BLKoldSUN Epic text-input Cod testat 426 2024-07-14 05:59:45

on *:TEXT:!rules:#: unset %num_line | rules $nick

alias -l pathfile { return rules.txt }
alias -l delaymsg { return 1500 }

alias -l rules {
  inc %num_line | var %str $read($pathfile,nt,%num_line)
  if (%str == $null) var %str $chr(160) | .msg $1 %str
  if (%num_line >= $lines($pathfile)) { return }
  .timerRULES -m 1 $delaymsg rules $1
}