It may look a little something like this:
on *:JOIN:
#:{
if ($nick ==
Nickname)
msg # Welcome $nick to the room :-)
}
You should change
Nickname to the nickname you wish to detect. Note the
#, you should use this to make this occur on ALL channels the person joins. If you only want it to activate on one channel, use #channel instead of #, where #channel is the channel name.
To detect the address, you may want to use $site or $address. The difference? Well, $site detects the hostname/IP - whatever comes after the @ symbol. So if the [email]user@host[/email] is
arnie@mirc.mascot.com then $site is 'mirc.mascot.com'. If he uses a static IP or hostname, you can use this easily:
on *:JOIN:#:{
if ($site == mirc.mascot.com) {
msg # Welcome $nick to the room :-)
}
}
However, in the case of a dial-up user or indeed depending on the ISP they use, their hostname may change. So say you wanted to check if the person has 'mascot.com' ANYWHERE in their hostname. In the above example, the bit after the @ must be exactly mirc.mascot.com. If you want to detect if it's anywhere, you use 'iswm' which means
is wildcard
match:
on *:JOIN:#:{
if (*mascot.com* iswm $site) {
msg # Welcome $nick to the room :-)
}
}
However, this may prove to detect too many people so you might use something like $address. As a simple example, let's say the [email]user@host[/email] is
trout@slaps.people.around.a.bit :
on *:JOIN:#:{
if (trout@*.around.a.bit iswm $address) {
msg # Welcome $nick to the room :-)
}
}
More help can be found with:
/help $site
/help $address
/help if then else
/help on joinOf course, you may find it easier to use Access Levels as was suggested - they're just as simple as the above. See
/help access levels.
Hope this has been helpful!
Regards,