in my userlist, i have a line that shows the following:
10:*!*Ausnut@AusNut.users.undernet.org ;AusNut Dingo` 100
user level; address; X username; normal nick; X Access Level
X is the CService bot on the Undernet

I want to get the X Access Level from the end of the line to display in my opcheck script.
I just dont know how to get the access level.

if someone could give me a few ideas that would be great smile
Code:
ALIAS opcheck {

  ;checks for @
  %coun = 1
  %C.NICKS = $nick($chan,0)
  echo 2 -a 14,15==> OPS:  
  while ( %coun <= %C.NICKS ) {
    if ( $level($address($nick($chan,%coun),1)) == %OL )  {
      set %nick $nick($chan,%coun) 
      if ( $nick($chan,%coun) isop $chan ) { 
        echo 2 -a 14,15==>12   @ $+ $nick($chan,%coun) $&
          $str($chr(160),$calc(9 - $len(%nick))) 14<=>12 $&
          $address($nick($chan,%coun),1)
      }
      else echo 2 -a 14,15==>12    $nick($chan,%coun) $&
        $str($chr(160),$calc(10 - $len(%nick))) 14<=>12 $&
        $address($nick($chan,%coun),1)
      cline 12 $chan $nick($chan,%coun) 
    }
    inc %coun 1
  }
}

that show's the following on the screen

14,15==>12   @Dingo`     14<=>12 *!*AusNut@AusNut.users.undernet.org
14,15==>12   @Oddjob^    14<=>12 *!*nettopp33@217.10.142.183
14,15==>12   @X          14<=>12 *!*cservice@undernet.org
14,15==>12   mafafk      14<=>12 *!*mafkees@mafkees.users.undernet.org

[EDIT: added $& and [[/b]/code] -Hammer]

Last edited by Hammer; 07/01/03 09:38 AM.