mIRC Home    About    Download    Register    News    Help

Print Thread
#16276 21/03/03 11:56 AM
Joined: Feb 2003
Posts: 20
F
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2003
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
}
}

#16277 21/03/03 11:58 AM
Joined: Mar 2003
Posts: 272
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Mar 2003
Posts: 272
/help ON DNS


- cF
Dedicated helper for rent.
#16278 22/03/03 02:00 AM
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
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....

Link Copied to Clipboard