Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. on *:text:*:#:{
  2. if ($1 = .title) {
  3. var %file $qt($+($mircdir,title.txt))
  4. var %lines $lines(%file)
  5. if ($2 <= %lines) {
  6. msg $chan $nick title: $2 - $read(%file,nt,$2)
  7. }
  8. else { msg $chan $nick title out bounds. titles: %lines }
  9. }
  10. elseif ($1 = .superstar) {
  11. var %file $qt($+($mircdir,title.txt))
  12. var %r $read(%file, w, * superstar *)
  13. if (%r) { msg $chan $nick -> %r }
  14. else { msg $chan matchtext superstar was not found }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement