Channel List

By Lord-Harlot on Feb 23, 2010

Just a little snippet to list all the channels you are on in alphabetical order.

Been useful for me sometimes. Thought other people might get some use from it.

alias chans { 
  var %x = $chan(0)
  while (%x) {
    var %chan %chan $chan(%x)
    dec %x
  }
  var %chan $sorttok($replace(%chan,$chr(32),$chr(44)),44,a)
  echo -a %chan
}

Comments

Sign in to comment.
Jethro   -  Mar 01, 2010

lol Silo, he did go to a right room hereafter.

 Respond  
Silo   -  Mar 01, 2010

I think you're in the wrong room ;)

 Respond  
CaVeMaN   -  Feb 26, 2010

As you know ..nick completions only apears at the begining of the text , my idea is to make it apears anywhere on the text ...here is the part i asume it has to be modificate or change it .. if someone cane help me with this ...

/corrige.nicks {
if ( $right($1,1) = : ) {
%nc = 0
%nn = $nick(#,0)
:1
inc %nc 1
if (%nc > %nn) goto 3
%nac = $nick(#,%nc)
%ntm = $len(%nac)
%nsf = $ncmuestra(%nac)
%npart = $remove( $1 ,:)
if (%npart isin %nac) {
%texto = %nsf $+ $right(%texto,$calc($len(%texto) - $len($$1)))
goto 3
}
else { goto 1 }
:3
unset %nac %ntm %nsf %nn %nc %npart
}
elseif ($$1 ison #) {
; %texto = $replace(%texto,$$1,$ncmuestra($nick(#,$nick(#,$$1))))
%texto = $ncmuestra($nick(#,$nick(#,$$1))) $+ $right(%texto,$calc($len(%texto) - $len($$1)))
}
}
ncmuestra {
return $+ %nc1.c $+ $+ %nc1 $+ [ $ $+ [ texto $+ [ %ncnick ] $+ ($$1) ] ] $+ $+ %nc2.c $+ $+ %nc2 $+
}

 Respond  
Jethro   -  Feb 25, 2010

dat thing u doI saw that movie back in 1996.

 Respond  
GuitarMasterx7   -  Feb 25, 2010

its dat thing u do =D

 Respond  
napa182   -  Feb 24, 2010

lol

um whats msl ;x

 Respond  
sunslayer   -  Feb 24, 2010

O_O may not know what you guys are talkin bout but seems to me napa knows his stuff napa doesn't know msl and actually leaches off people in order to look smart. argue.

 Respond  
Scakk   -  Feb 24, 2010

To original script.

Beware Networks that have more channels than the variable can hold.

 Respond  
blackvenomm666   -  Feb 24, 2010

O_O may not know what you guys are talkin bout but seems to me napa knows his stuff i wouldnt argue with him.

 Respond  
Jethro   -  Feb 23, 2010

No sorttok is necessary unless you didn't check the "sort buttons" under mirc's display option. When checked, the list will be listed alphabetically. You can do this the non-regex way in one line with a loop:

alias chans while ($chan($0)) tokenize 32 $1- $v1 | echo -a $2-

Sort buttons

If this option is turned on, window buttons are sorted alphabetically as opposed to the order in which windows were opened.Why go the extra mile when something is handy for you to grab?

 Respond  
napa182   -  Feb 23, 2010

why should i use $sorttok for when it already puts them in order, and if you dont want $chr(32) then use $chr(44)

 Respond  
Ghost-writer   -  Feb 23, 2010

Napa, dont forget to $sorttok, thats what his does.

 Respond  
napa182   -  Feb 23, 2010

you can also do

alias chans echo -a $regsubex($str(-,$chan(0)),/(.)/g,$chan(\n) $chr(32))
 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.