mIRC Home    About    Download    Register    News    Help

Print Thread
on join or on op #12676 23/02/03 03:16 PM
Joined: Feb 2003
Posts: 3
K
Kilon Offline OP
Self-satisified door
OP Offline
Self-satisified door
K
Joined: Feb 2003
Posts: 3
on *:join:#: {if $chan == #plp-intern) { .mode $chan -o [PLP]Blipster } }

can i use that?

Re: on join or on op #12677 23/02/03 03:39 PM
Joined: Dec 2002
Posts: 2,984
Watchdog Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,984
Code:
ON *:JOIN:#plp-intern: {
  mode # -o [PLP]Blipster
}

That looks more like the correct code. As for the function I am not sure it it will work.

1. There's no check in it to make the script only reacts to your join.
2. When the ON JOIN event occurs, you are not +o.


Induced IRC
irc.induced.net
Re: on join or on op #12678 23/02/03 03:43 PM
Joined: Dec 2002
Posts: 271
N
NightChillz Offline
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 271
Personaly i would use on *:op:*:{
Then check the nick for a match, if macth is found, mode $chan -o $nick

as, even if the user joins the room as op, the mode +o command is sent to the server, so you would pick it up.