Top

$ischanmode

Please Register to submit score.
Average Score  4.0
Scores Submitted  2
Date Added  Dec 25, 2007
Last Updated  Dec 25, 2007
Tags  channel  check  mode 

Introduction

Returns $true or $false depending on if a channel mode is set. See documentation below. Ability to use wildcards and to match multiple modes at a time. Very simplified code.

Grab the Code

Comments

  (4)  RSS
Rebellious
Comments: 64
 
mIRC Snippet:  $ischanmode
Posted on Dec 25, 2007 12:22 pm
.. Very simple =(
sunburst
Comments: 7
 
mIRC Snippet:  $ischanmode
Posted on Dec 25, 2007 12:59 pm
Yes I know it is simple, but, as stated in the documentation, I found it very useful and thought I'd share it with others. Thanks for your rating though!
Lindrian
Comments: 693
 
mIRC Snippet:  $ischanmode
Posted on Dec 25, 2007 1:01 pm
Code:

alias ischanmode return $iif($2 isincs $chan($1).mode,$true,$false)

That'd do I think.
sunburst
Comments: 7
 
mIRC Snippet:  $ischanmode
Posted on Dec 25, 2007 1:22 pm
Ah, I knew this would come up. That would work, but this is better because it supports wildcards. If the modes were +ist, $ischanmode(#,it) would not work. However, $ischanmode(#,i*t) would work. Just makes it easier to return matches.

Please Register or Login to start posting comments.
Bottom