Advertisement
westor

/matchip on +e list for Drake v1.0

Feb 26th, 2022 (edited)
1,963
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.83 KB | None | 0 0
  1. alias matchip {
  2.   if (!$1) { echo 4 -ate Error: Please enter a match entry! | return }
  3.   if ($active !ischan) { echo 4 -ate Error: The target has to be a channel window! | return }
  4.  
  5.   var %t = $iel($chan,0)
  6.  
  7.   if (!%t) { echo 4 -ate Error: There is NOT any except item on the channel list! | return }
  8.  
  9.   echo 2 -ate * Scanning $+($chr(2),$chan,$chr(2)) channel for $+($chr(2),$1,$chr(2)) match..
  10.  
  11.   var %i = 1
  12.   while (%i <= %t) {
  13.     var %m = $iel($chan,%i)
  14.     var %a = $iel($chan,%i).by
  15.     var %d = $iel($chan,%i).ctime
  16.  
  17.     if (!%m) && (!%a) && (!%d) { goto next }
  18.  
  19.     if (%m == $1) || (* $+ $1 $+ * iswm %m) { var %tot = $calc(%tot + 1) | echo 2 -at * %i $+ : %m - Added on: $asctime(%d) - By: %a }
  20.  
  21.     :next
  22.     inc %i
  23.   }
  24.  
  25.   echo 2 -ate * End of $+($chr(2),/matchip,$chr(2)) results. - (Total: $iif(%tot,$v1,0) $+ )
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement