mIRC Home    About    Download    Register    News    Help

Print Thread
$nick() problems #106626 01/01/05 08:25 PM
Joined: Mar 2004
Posts: 359
L
LostServ Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Code:
on 1:join:#: {
  if ($nick == $me) {
    echo 3 $chan [Opped: $nick(#,0,o) HalfOpped: $nick(#,0,h) Voiced: $nick(#,0,v) Normal: $nick(#,0,a) $+ ]
  }
}

No matter what channeI join it returns:
[Opped: 0 HalfOpped: 0 Voiced: 0 Normal: 1]

Re: $nick() problems #106627 01/01/05 08:28 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019


Gone.
Re: $nick() problems #106628 01/01/05 08:42 PM
Joined: Mar 2004
Posts: 359
L
LostServ Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Thanks, got it working smile

Re: $nick() problems #106629 01/01/05 08:57 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Welcome.


Gone.
Re: $nick() problems #106630 04/01/05 09:15 PM
Joined: Aug 2004
Posts: 237
L
LethPhaos Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
echo -tc topic $chan * Chanmode: $chan($chan).mode

What if I want to add this information to the echoes when I join a channel?

Re: $nick() problems #106631 04/01/05 09:32 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
It can't be done unless you change numeric 366 to 324.
Code:
raw 324:*: { 
  haltdef
  echo -tc topic $2 Total: $nick($2,0,a) * Operators: $nick($2,0,o) Voices: $nick($2,0,v) chanmode $chan($2).mode 
}

Re: $nick() problems #106632 04/01/05 09:53 PM
Joined: Aug 2004
Posts: 237
L
LethPhaos Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
Thanx, works fine.

Re: $nick() problems #106633 06/01/05 02:07 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome.