Code / mIRC / Find String in IAL

  1. ; The following snippet, will find anything contained within
  2. ; someones hostmask. Ie, if you name is joe, and you do /f joe,
  3. ; it will catch all of these:
  4. ;
  5. ; joe!me@myhost.com
  6. ; bob!joe@lolol.com
  7. ; happy!lalala@joesloves.com
  8.  
  9. ; Address string finder
  10. alias">alias find {
  11.   if ($1 == $null) { echo -a : Can't search for nothing =/ | halt }
  12.   echo -
  13.   echo : Starting search...
  14.   who $active
  15.   set %this.address 0
  16.   set %max.address $nick($active,0)
  17.   :search
  18.   inc %this.address
  19.   if ($1- isin $address($nick($active,%this.address),5)) {
  20.     .echo -a : : Match: $nick($active,%this.address) ( $+ $address($nick($active,%this.address),5) $+ )
  21.   }
  22.   if (%this.address == %max.address) {
  23. echo -a : Search complete
  24. halt
  25. }
  26.   goto search
  27. }

Download as Text : January 6th, 2009