Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. on *:TEXT:!quote:#: {
  2. if ($right($1,-1) == quote) {
  3. if (!$2) { msg # Random Quote: $read(C:\mIRC\allquotes.txt,n) }
  4. elseif ($2 isnum) && ($lines(C:\mIRC\allquotes.txt) >= $2) { msg $chan Quote $+($2,/,$lines(C:\mIRC\allquotes.txt),:) $read(C:\mIRC\allquotes.txt,n,$2) }
  5. elseif ($2 == find) && ($len($3) > 2) {
  6. var %x $lines(C:\mIRC\allquotes.txt)
  7. while (%x) {
  8. if ($3- isin $read(C:\mIRC\allquotes.txt)) {
  9. set %quotes.return $addtok(%quotes.return,%x,32)
  10. }
  11. dec %x
  12. }
  13. unset %quotes.*
  14. halt
  15. }
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement