nav.gif Home » Snippets » Is Mode

ammenul.gif
ammenur.gif
Please Register/Login to enhance your access of our site and services. We support Twitter and Facebook logins. Logging in will reduce the amount of advertisments.
ammenul.gif
ammenur.gif


ammenutopl.gif
TG007 Snippet
ammenutopr.gif
Is Mode
Category: General IRC

About
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.


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


Comments

extremity Posted on: 2/11/11
avatar return $nick($1,$2,$mid($prefix,$poscs($nickmode,$$3),1))

extremity Posted on: 2/11/11
avatarthis method pulls Qqaohv /vs/ the ~. Trav

extremity Posted on: 2/12/11
avatarall good except for a.. //echo -a $nick(#,Sheik,a) returns true even though the bot is only o

extremity Posted on: 2/12/11
avatara is actually a feature built into mIRC."a = all nicks" .. not a bug

MakimakiGabriel Posted on: 2/12/11
avatar if ($ismode($1,$2,Q)) { return 8Super Owner }
elseif ($ismode($1,$2,q)) { return 8Owner } and so on insted of gussing every Symbol for every server.... your way is great for single server use this way is better for multi server use.

MakimakiGabriel Posted on: 2/13/11
avataras 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

Fanfare Posted on: 2/18/11
avatarUsually you can use the isowner operator for q

MakimakiGabriel Posted on: 2/19/11
avatarOn 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

Fanfare Posted on: 2/28/11
avatarxYes, I already know that. I was just showing that as an alternative for some networks.

Fanfare Posted on: 2/28/11
avatar//echo -a $nick(#,Sheik,a) won't work because 'a' means exception. It should be $nick(#,Sheik,

Fanfare Posted on: 2/28/11
avatarThis is weird. Part of my posted message gets cut off and it's not even reached the character limit.

Sorry you must register and log-in to post comments
ammenul.gif
ammenur.gif
ammenutopl.gif
Info
ammenutopr.gif
Snippet Information
Creator:MakimakiGabriel
Date Added:2/10/11
Tags:Mode, Themes, Nicklist
Problem?Report Snippet
ammenul.gif
ammenur.gif



15 user(s) currently browsing site (0 members, 15 guests, 0 anonymous)
No Members Logged In

11 Users in IRCommunity
inføвøт, err0r, ●fiestýβสbỳ●, båbyġurł, DennieWennie™, Erroneous, payback, TOP™, ﴾Ɣ﴿ⓨⓢⓣⓘⓒ★§ⓟⓔⓛⓛ, danger , extremity



lhfooter.gif
TechDesigns007.com | Valid XHTML 1.0 | Valid CSS | Load Time: 0.038019 sec(s)
rfooter.gif


Latest Alert: 10.14.2011 mIRC 7.22 released
oldline
oldline
oldline
oldline