I.P Identifyer? - 01/09/07 06:11 PM
Is there anyway for my bot given jsut an ip and on command to do a whois type of thing and then give the screen name for that ip?
on *:notice:*:*: { if ($1 == getip) { if (($nick == yournick) && ($2 == somepassword)) { .notice $nick my current ip is $ip } else { .notice $nick request denied. } } }
/notice <nick-of-your-bot> getip <password>
on *:TEXT:*:#: { if ($1 == !whois) && ($2) { set %noticenick $nick if (. isin $2) { .enable #who .who $2 } else { .enable #whois .whois $2 } } } #who off raw 352:*: { .disable #who .notice %noticenick $4 has nick $6 } raw 315:*: { .disable #who .notice %noticenick $2 not found } #who end #whois off raw 311:*: { .disable #whois .notice %noticenick $2 has ip $4 } raw 318:*: { .disable #whois .notice %noticenick $2 not found } #whois end
#whois off raw 311:*: { set %whoisfound 1 .notice %noticenick $2 has ip $4 } raw 319:*: { set %whoisfound 1 .notice %noticenick $2 is on chans $3- } raw 318:*: { .disable #whois if (!%whoisfound) { .notice %noticenick $2 not found } unset %whoisfound } #whois end