$premode

By SilentExile on Sep 16, 2007

$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

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

Sign in to comment.
SilentExile   -  Sep 17, 2007

I really don\'t mind. As long as you give me credit for my work, it\'s fine.

 Respond  
dataprofile   -  Sep 17, 2007

Do you mind if I use this is my Theme customization snippet?

 Respond  
SilentExile   -  Sep 16, 2007

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. ;)

 Respond  
xDaeMoN   -  Sep 16, 2007

I would just use \'$nick($active, $me).pnick\' in this case with $left. ;)

 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.