mIRC Home    About    Download    Register    News    Help

Print Thread
#106136 25/12/04 02:16 AM
Joined: Dec 2004
Posts: 2
G
Bowl of petunias
OP Offline
Bowl of petunias
G
Joined: Dec 2004
Posts: 2
I'm trying my hand at mIRC scripting, I can make this work..

on *:join:#channel: { if ($nick == person) { .mode $chan +h $nick } }

but not

on *:join:#D&D: { if ($nick == person) { .mode $chan +h $nick } }

I've narrowed it down to the & in the D&D part. What's going on, and how do I fix it?

And is there perchance a way to check if the nick's registered before I do that, maybe a way to compare the host somehow?

Thanks

#106137 25/12/04 03:34 AM
Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
on *:join:#:{
if ($chan == #D&D) {
if ($nick == person) {
mode $chan +h $nick
}
}
}

To check if a nickname is registered you will have to do a /whois on them and check if raw 307 is there.

#106138 25/12/04 11:08 AM
Joined: Dec 2002
Posts: 79
F
Babel fish
Offline
Babel fish
F
Joined: Dec 2002
Posts: 79
on *:join:#D $+ $chr(38) $+ D: { if ($nick == person) { .mode $chan +h $nick } }


Link Copied to Clipboard