mIRC Home    About    Download    Register    News    Help

Topic Options
#16276 - 21/03/03 11:56 AM dns
fallen248 Offline
Ameglian cow

Registered: 28/02/03
Posts: 20
Hey, I want to have my bot do dns's for all the registered users of the bot. I Know how to set it to check for access but i am not sure of how to go about doing the dns'ing and sending the response to the channel. This is what i have so far.

on *:TEXT:.dns *:#:{
/set %userlevel $readini(ftpxusers.dat, $nick, Level)
if (%userlevel isnum 1-3) {
/dns
}
else {
.notice $nick You Do Not have access to this command
}
}

Top
#16277 - 21/03/03 11:58 AM Re: dns
c0ldfusi0n Offline
Fjord artisan

Registered: 17/03/03
Posts: 272
Loc: Montreal, Canada
/help ON DNS
_________________________
- cF
Dedicated helper for rent.

Top
#16278 - 22/03/03 02:00 AM Re: dns
Othello Offline
Fjord artisan

Registered: 09/12/02
Posts: 417
It is possible to do a DNS check on each registered nick entering a channel but you will notice some users may have two or more DNS addresses depending on there Provider.

Code:
  [color:red]
on *:dns: {
  set %userlevel $readini(ftpxusers.dat, $nick, Level)
  if (%userlevel isnum 1-3) { COMMAND }
}
on *:join:#YOURCHAN: {
  dns $nick
}
 [/color]  
_________________________


Intelligence: It's better to ask a stupid question, then to prove it by not asking....

Top