Advertisement
iPeer

Untitled

Apr 22nd, 2011
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.81 KB | None | 0 0
  1. on $*:text:$($+(/^@?rec[ei]pi?e,$chr(58),/Si)):#:{
  2.   var %f F:\mIRC\iPeer\recepies.txt, %s $2-, %n 1, %m $iif($left($1,1) == @,msg $chan,.notice $nick)
  3.   if ($2 isnum) {
  4.     if ($read(%f,$2)) {
  5.       tokenize 9 $v1
  6.       %m $*
  7.     }
  8.     else {
  9.       %m No matching recepe found at that possition.
  10.     }
  11.   }
  12.   else {
  13.     while ($read(%f,w,$+(%s,*),%n)) {
  14.       inc %r
  15.       %o = %o $+ $+($iif($len(%o) > 0,$+($chr(44),$chr(32))),$gettok($read(%f,$readn),1,9) - $readn)
  16.       %n = $calc($readn + 1)
  17.     }
  18.     if (%o) {
  19.       if (%r >= 2) {
  20.         %m %r total results, use recipe: N to specify the one you want: %o
  21.       }
  22.       else {
  23.         tokenize 9 $read(%f,$gettok(%o,3,32))
  24.         %m $*
  25.       }
  26.     }
  27.     else {
  28.       %m No matching recipes found.
  29.     }
  30.   }
  31.   unset %o %r %n %f %s %m
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement