Skip to content
TG007 community snippet #54

Is Mode

This little alias is great for getting the right prefix of a user mode depending on the server. I use it for my theme, nicklist menu, and aop.

By Jess Added Feb 9, 2011
General IRC All snippets
mIRC script 2 lines
About this snippet

Overview

This little alias is great for getting the right prefix of a user mode depending on the server. I use it for my theme, nicklist menu, and aop.
Source code

mIRC script

2 lines · 140 characters
;Prams  Channel Nick Mode ie( $ismode(#,$nick,q) )
alias ismode return $iif($nick($1,$2,$mid($prefix,$poscs($nickmode,$3),1)),$true,$false)
Community

Comments

Want to join the discussion? Sign in to TG007.
FanfareMonday, 28 February, 2011
xYes, I already know that. I was just showing that as an alternative for some networks.
JessSaturday, 19 February, 2011
On certian servers that works great Fanfare how ever on others it will not work and you will need to use either Travis's routine that he has shared or something like what I posted... its ment for multi server use
FanfareFriday, 18 February, 2011
Usually you can use the isowner operator for q
JessSaturday, 12 February, 2011
as it gets the info from the raw so if server A owner is . and server B is ~ then the same for the other prefix symbols. tho your way would work that just adds line after line and if you join a server that has anew prefix you have to add it as well
PabloSaturday, 12 February, 2011
a is actually a feature built into mIRC."a = all nicks" .. not a bug
View 6 older comments
guestSaturday, 12 February, 2011
So mIRC is buggy, then use the symbol which isn't. Simple is generally best.
PabloSaturday, 12 February, 2011
all good except for a.. //echo -a $nick(#,Sheik,a) returns true even though the bot is only o
guestFriday, 11 February, 2011
if ($nick(#,$nick,Q q)) { }
PabloThursday, 10 February, 2011
this method pulls Qqaohv /vs/ the ~. Trav
PabloThursday, 10 February, 2011
return $nick($1,$2,$mid($prefix,$poscs($nickmode,$$3),1))
guestThursday, 10 February, 2011
if ($nick(#,$nick,<mode symbol>wink) { }