Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. alias find {
  2. if (@ isin $1) && (!$2) {
  3. var %x 1,%m,%ticks $ticks
  4. echo -a $alert Searching4 $chan(0) channels,4 $calc($regsubex($str(~,9),/./g,$nick($chan(\n),0) +)) people..
  5. while (%x <= $chan(0)) {
  6. var %xx 1
  7. while (%xx <= $nick($chan(%x),0)) {
  8. var %nick $nick($chan(%x),%xx)
  9. if ($1 iswm $address($nick($chan(%x),%xx),5)) {
  10. if (!$istok(%ret,%nick,32)) { echo -a $alert Match found:4 %nick (4 $+ $replace($gettok($address(%nick,5),2,33),@,@4,.,.4,:,:4) $+ ) $regsubex($str(~,$comchan(%nick,0)),/./g,$+($chr(3),$iif(%nick isop $comchan(%nick,\n),4@,$iif(%nick ishop $comchan(%nick,\n),8%,$iif(%nick isvoice $comchan(%nick,\n),12+))),$chr(3),4,$comchan(%nick,\n) $chr(32)))) | inc %m }
  11. var %ret %ret %nick
  12. }
  13. inc %xx
  14. }
  15. inc %x
  16. }
  17. if (!%m) echo -a $alert No matches found.
  18. else echo -a $alert 4 $+ $bytes(%m,bd) matches found in4 $calc(($ticks - %ticks) /1000) seconds
  19. }
  20. }
  21. alias alert { return 4ยค }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement