ChanList

By xdesoto on Oct 01, 2011

I didn't make this.
I just think it's interesting.
Thanks Frenetic for stating that Airliner made this.
Just press alt p on your mIRC script
A dialog will show up.
View>>>2.Channel
Paste
right click the channel and you'll see this image.

Image

$chan
.$iif($server, Stats)
..Ops   ( $nick(#,0,o) ): halt
..Voices    ( $nick(#,0,v) ): halt
..Regular   ( $nick(#,0,r) ): halt
..-
..Total ( $nick(#,0) ): halt
.-
.Topic
..Set:topic # $$input(Topic:,eyq,Topic)
..Show:topic #
..-
..Clear: topic # $chr(10)
.Central:channel
.-
.Modes $+ $chr(58) $+ $chr(9) $+ $chan(#).mode
..$iif(c isincs $gettok($chan(#).mode,1,32),$style(1)) No colors:{ if (c isincs $gettok($chan(#).mode,1,32)) { mode # -c } | else { mode # +c } }
..$iif(i isincs $gettok($chan(#).mode,1,32),$style(1)) Invite only:{ if (i isincs $gettok($chan(#).mode,1,32)) { mode # -i } | else { mode # +i } }
..$iif(M isincs $gettok($chan(#).mode,1,32),$style(1)) Only registered nicks can speak:{ if (M isincs $gettok($chan(#).mode,1,32)) { mode # -M } | else { mode # +M } }
..$iif(m isincs $gettok($chan(#).mode,1,32),$style(1)) Moderated:{ if (m isincs $gettok($chan(#).mode,1,32)) { mode # -m } | else { mode # +m } }
..$iif(n isincs $gettok($chan(#).mode,1,32),$style(1)) No external messages:{ if (n isincs $gettok($chan(#).mode,1,32)) { mode # -n } | else { mode # +n } }
..$iif(p isincs $gettok($chan(#).mode,1,32),$style(1)) Private:{ if (p isincs $gettok($chan(#).mode,1,32)) { mode # -p } | else { mode # +p } }
..$iif(R isincs $gettok($chan(#).mode,1,32),$style(1)) Registered nicks only:{ if (R isincs $gettok($chan(#).mode,1,32)) { mode # -R } | else { mode # +R } }
..$iif(s isincs $gettok($chan(#).mode,1,32),$style(1)) Secret:{ if (s isincs $gettok($chan(#).mode,1,32)) { mode # -s } | else { mode # +s } }
..$iif(t isincs $gettok($chan(#).mode,1,32),$style(1)) Only ops set topic:{ if (t isincs $gettok($chan(#).mode,1,32)) { mode # -t } | else { mode # +t } }
..$iif(l isincs $gettok($chan(#).mode,1,32),$style(1) User limit $+ $chr(58) $chan(#).limit,User Limit):{ if (l isincs $gettok($chan(#).mode,1,32)) { mode # -l } | else { mode # +l $$?"Maximum number of users allowed in # $+ :" } }
..$iif(k isincs $gettok($chan(#).mode,1,32),$style(1) Key $+ $chr(58) $chan(#).key,Key):{ if (k isincs $gettok($chan(#).mode,1,32)) { mode # -k $chan(#).key } | else { mode # +k $$?"Enter key for # $+ :" } } }
.

Comments

Sign in to comment.
yelow79   -  Oct 02, 2011

I just want to learn! Lol nobody better to learn from than jaytea. He even explains things simple enough for a newborn like myself to understand them.

 Respond  
Jethro   -  Oct 02, 2011

I used to abuse $iif quite a bit until one day I got an epiphany. I've learned my lessons.

 Respond  
yelow79   -  Oct 01, 2011

Thank you Jaytea, for explaining that. I understood why the $iif( ) was put in place. I use it quite often in menus. What I didn't understand was how it was getting a comparison, but now I do see what is happening with that.

 Respond  
jaytea   -  Oct 01, 2011

yelow79, in a popup definition, if the popup label is $null then that menu, as well as its submenu in this case, isn't created. $iif($server, Stats) returns $null if $server doesn't return a positive value, ie. when you're disconnected from a server, and so 'Stats' only appears when you're connected.

 Respond  
Frenetic   -  Oct 01, 2011

;p

 Respond  
xdesoto   -  Oct 01, 2011

Fixed Frenetic.
SO THERE Stop crying :P

 Respond  
yelow79   -  Oct 01, 2011

thank you Jethro,
I have seen $iif() used a couple of times in that manner and was wondering about it because I couldn't see how there could be an else involved. This makes since now.

 Respond  
Frenetic   -  Oct 01, 2011

You're welcome. And you spelt my name wrong, just because I spelt yours wrong on my net doesn't mean you have to! :(

 Respond  
xdesoto   -  Oct 01, 2011

As I stated, I didn't make this code.
Didn't change anything, didn't add anything.
Not taking credit for anything.

 Respond  
Jethro   -  Oct 01, 2011

yelow, that is the same as:

if ($server) { stats }

no else is involved.

 Respond  
xdesoto   -  Oct 01, 2011

@TheWhistler, yes popups is where this goes. Which is why I said put it in the (Channel)
@Frenetic, thanks I'll edit it.
@Gillian, there is no color codes in this snippet, so it should effect the color.
@Yelow79, I didn't totally understand what you said.

 Respond  
yelow79   -  Oct 01, 2011

can someone explain what this compares for the if then else?

$iif($server, Stats)

thanks in advance

 Respond  
Gillian   -  Oct 01, 2011

well not the background..mines all pink so dont tell me i cant do it..

 Respond  
Jethro   -  Oct 01, 2011

Gillian, the colour has nothing do with the snippet itself.

 Respond  
TheWhistler   -  Oct 01, 2011

my alt + p brings up popups in script editor

 Respond  
Gillian   -  Oct 01, 2011

dull colour but its alright..i wouldnt use it...just my opion o err typos errors again...chains fault!(fl)

 Respond  
Frenetic   -  Oct 01, 2011

A guy named, Airliner. Made it.

 Respond  
irchainscriptz   -  Oct 01, 2011

Yeah dose look good!!

 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.