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) {
else {
.notice $nick You Do Not have access to this command

#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.

#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.

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

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