pmsgs You have no new messages
Thu Aug 21st 2008 Welcome, Anonymous! › Log in Or Register
› Viewing Code Snippet → $ismirc.

Projects's information

Project Name : $ismirc
File Size : 1.571 kb
Author : Sigh
Project Description : Uses binary variables to check the mIRC help file and determine whether the command or identifier specified if one of mIRC's built-in commands or identifiers, or not.
Line Numbers : Hide Lines Number

  1. alias ismirc {
  2.   ; Declare local variables for storing list of undocumented identifiers/commands
  3.   var %f $+(",$findfile($mircdir,mirc.hlp,1),"),%r return,%e echo $color(i) -ea,%i $iif($!* iswm $1,1),%s $iif($!* iswm $&
  4.     $1,identifier.,command.),%c $eval($remote $beta $nopnick $nvnick  $nhopnick $* $r $colour $nickmode $true $false $yes $no  $ok $&
  5.     $cancel $hfile $lof $bits $evalnext $initopic $dir $auto $banlist $token  $rnick $mp3 $wavedir $mp3dir $mididir $addtokcs  $findtokcs $&
  6.     $istokcs $matchtokcs $remtokcs $reptokcs $sorttokcs $wildtokcs  $getdir $inpaste $trust $! $? /xyzzy /colour /closemsg  /clearial $&
  7.     /quote /auto /leave /registration /action /else /elseif  /setlayer /notice /username,0),%l %e ** $1 is a built in %s
  8.   ; If it's an identifier such as $1-2 or an undocumented command/identifier then proceed
  9.   if ((i* iswm %s) && ($regex($mid($1,2),^\d+-*\d*$))) || ($istok(%c $!&,$1,32)) { goto y }
  10.   if (!$1) || (!$regex($1,^\$|/)) {
  11.     %e Specify a command/identifier to search for $iif(!$1,(remember to use ! in identifiers to keep them from evaluating))
  12.     %r
  13.   }
  14.   if (!%f) { %e Help file missing | %r }
  15.   if ($version < 6.1) { %e mIRC version 6.1 or greater required.  | %r }
  16.   ; Read the contents of the help file into a binary variable and search for the requested command/identifier within it
  17.   bread %f 1 $lof(%f) &t
  18.   var %p = $bfind(&t,1,$1)
  19.   if (%p && !$bvar(&t,$calc(%p -1))) && (!$bvar(&t,$calc($len($1)+%p))) {
  20.     :y
  21.     if ($isid) { %r 1 }
  22.     %l
  23.     %r
  24.   }
  25.   ; Output results
  26.   if ($isid) { %r 0 }
  27.   $instok(%l,not,7,32)
  28. }
 

Changes log | Contributers | DALnet Services | mIRC Scripts | Technical | Useful Links | Chat Now | Guidelines | DALnet