mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2004
Posts: 9
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Jun 2004
Posts: 9
It is not true the mIRC Help!
$comchan(nick,N) not returns the names of channels which both you and nick are on but the number.
For return the names, there isn't the variable crazy

Joined: Oct 2003
Posts: 96
J
Babel fish
Offline
Babel fish
J
Joined: Oct 2003
Posts: 96
$comchan(nick,0) returns number of common channels
$comchan(nick,1) returns name of first common channel
$comchan(nick,2) returns name of second common channel

you could do this

Code:
alias comchans {
  if (!$comchan($1,0)) return 0
  var %i = 1
  while ($comchan($1,%i)) {
    var %r = %r $ifmatch
    inc %i
  }
  return %r
}


//echo -a $comchans(nick)

Last edited by JoeDaddy; 24/01/05 03:40 PM.
Joined: Jun 2004
Posts: 9
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Jun 2004
Posts: 9
It would be beautiful if they create also $comchan that the list of channels allows to see you all, instead of having to create a alias

Joined: Oct 2003
Posts: 96
J
Babel fish
Offline
Babel fish
J
Joined: Oct 2003
Posts: 96
I Agree. Maybe start a thread in Feature Suggestions ?

Last edited by JoeDaddy; 24/01/05 06:23 PM.
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
If it's added for $comchan(), people will want it for everything else, to name a few: $comchan(all), $chan(all), $query(all), $scon(all), $scid(all).


New username: hixxy
Joined: Jun 2004
Posts: 9
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Jun 2004
Posts: 9
ok smile


Link Copied to Clipboard