Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:text:?addlatest*:#:{
- ;now here some script to check users ... like
- if ($nick != [EvO]B3LL-UK ) {
- msg $chan no permission to add files to latest list
- halt
- }
- write latest.txt $ctime $2-
- msg $chan added $2- to latest
- }
- on *:text:?latest*:#:{
- if ($2 == $null ) { var %max = 20 }
- if ($2 >= 30 ) { var %max = 30 }
- if ($2 < 30 ) { var %max = $2 }
- var %i = 1
- var %lines = $lines(latest.txt)
- while (%i <= %max ) {
- var %raw = $read(latest.txt,%lines)
- notice $nick $+(%i,.) $gettok(%raw,2-,32)
- dec %lines 1
- inc %i 1
- }
- }
Add Comment
Please, Sign In to add comment