Jump to content

Archived

This topic is now archived and is closed to further replies.

chain

Channel Status - $status

Recommended Posts

  • Administrators

Channel Status - $status

 

This identifier was based off of one made by jonesy44 at http://www.hawkee.com/snippet/5665/.

 

I reconstructed it and removed the error messages for a shorter code. It returns the status of a user on a given channel in ~, &, @, %, +.

 

Usage: $status(Channel,Nick)

 

The .num property can be used to return the status in numbers:

 

~ = 5

& = 4

@ = 3

% = 2

+ = 1

Regular User = 0

 

Usage of the ".num" property: $status(Channel,Nick).num

 

>alias status {  var %x = $left($remove($nick($1,$2).pnick,$2),1)  if (!$prop) { return %x }  elseif ($prop == num) { return $iif($replace(%x,+,1,%,2,@,3,&,4,~,5),$v1,0) }}

Link to comment
Share on other sites



×
×
  • Create New...