Top

$premode


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  3.0 (of 1 scores)
Date Added  Sep 16, 2007
Last Updated  Sep 16, 2007

Introduction

$premode returns the value of a users mode in a channel. (~,&,@,%,+) It can return both your mode and another user's. The format you have to use is $premode(pnick).me/nick

Grab the Code

alias premode { 
  if ($isid) { 
    if ($1 = pnick) { 
      if ($prop = me) { 
        while ($nick($active, $me).pnick != $me) { return $+($left($ifmatch, 1),$me) }
      }
      if ($prop = nick) { 
        while ($nick($active, $nick).pnick != $nick) { return $+($left($ifmatch, 1),$nick) }
      }
      else { return $nick }
    }
  }
}
 

Comments

  (4)  RSS
xDaeMoN
Comments: 695
 
mIRC Snippet:  $premode
Posted on Sep 16, 2007 11:37 pm
I would just use '$nick($active, $me).pnick' in this case with $left. ;)
SilentExile
Comments: 19
 
mIRC Snippet:  $premode
Posted on Sep 16, 2007 11:43 pm
Well, I could do that. Through my eyes, they both work the same way and it wouldn't really make a difference so I'll keep it for now. ;)
dataprofile
Comments: 43
 
mIRC Snippet:  $premode
Posted on Sep 17, 2007 6:16 pm
Do you mind if I use this is my Theme customization snippet?
SilentExile
Comments: 19
 
mIRC Snippet:  $premode
Posted on Sep 17, 2007 6:20 pm
I really don't mind. As long as you give me credit for my work, it's fine.

Commenting Options

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

  
Bottom