Top

Channel Status - $status


mIRC Code
+ 1 likes
Please Register to submit score.
Bookmark and Share
Average Score  7.7 (of 3 scores)
Date Added  Feb 19, 2009
Last Updated  Feb 19, 2009
Tags  channel  status 

Introduction

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

Grab the Code

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) }
}

Comments

  (1)  RSS
PunkTuReD
Comments: 461
 
mIRC Snippet:  Channel Status - $status
Posted on Feb 20, 2009 12:27 am
very handy little snippet
10/10

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom