$accnick - Access Nick

By h3lp on Mar 03, 2005

Why do i do this snippet?
answer: mIRC only allow us to check only two prefix which is operator (@) and voice (+). with this snippet, it helps me to check if the user is really a normal user without -/%/bla bla..

1) $accnick($nick,$chan) return "1" IF the nick have any access in the channel, and return "0" if don't.

2) $accnick($nick,$chan,s) return the prefix of the nick. For exmpl: @

alias accnick {
  if ($3 == s) { var %num = 1 | while ($mid($prefix,%num,1)) $iif($nick($2,$1,$mid($prefix,%num,1)),return $mid($prefix,%num,1),inc %num) }
  else return $iif($nick($2,$1,$prefix),1,0)
}

Comments

Sign in to comment.
xDaeMoN   -  Mar 03, 2005

An alternative to the operators. Looks nice.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.