Ok, I know it has got to be simple, but I'm just starting/learning.
I run an info/help bot in a Game chan. Unfortunately, this server does not have a nickserv. The Bot announces everyone who joins the chan. I want the bot to warn the chan ONLY if someone signs on with the nick [NuB2]Deadmeat, and his IP does not match either 123.456.789.1 or 123.456.789.2. I know my code below does not fully reflect this (and some of it does not work), as I was playing with it to learn. But can someone help point me in the right direction, so that when [NuB2]Deadmeat uses another nick, that it greets him like any other user, but still warns when someone else trys to use his nick?
code
____________________________________________
on 1:join:#Rookie_Area: { if (($nick != $me)) {
if (($address == [email]user@123.456.789.1))[/email] {
.msg $chan All hail the CHIEF! $nick has arrived! | .msg $nick This User ID is Verified | halt }
if (($address == [email]user@123.456.789.2))[/email] {
/msg $chan All hail the CHIEF! $nick has arrived! | .msg $nick This User ID is Verified | halt }
else if ($nick = [NuB2]Deadmeat) { .msg $chan $nick has joined, but is a possible Imposter | halt }
if ($nick = [NuB2]Deadmeat) { .msg $nick your User ID was not Verified, notice sent to channel | halt }
{ .msg $chan $nick has just joined chat. }
}
}
_____________________________________________
RC