mIRC Home    About    Download    Register    News    Help

Print Thread
#129544 06/09/05 11:09 PM
Joined: Apr 2005
Posts: 72
B
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2005
Posts: 72
i have this:
Code:
 on *:JOIN:#: {
  ctcp $nick version
}
on *:SNOTICE:*client connecting*:{ 
  %nver = $nick 
  timer 1 5 ctcp $4 version 
  timer $+ %nver 1 15 //notice %nver I did not receive a version reply from you 
}
on 1:CTCPREPLY:VERSION*:{
  if (word1r isin $2-) || (word2 isin $2-) || (word3 isin $2-) { 
    msg #chan1 4 $nick not allowed
    ban -u60 #chan1 $nick | kick #chan1 $nick not allowed
  }
  Window @ctcp
  timer $+ $nick off 
  timer 1 1 //unset %nver
  aline @ctcp  $nick  $2-
  write versionlog. $+ $asctime(yyyy-mm-dd) $+ .txt $2-
  if ($read(versions.txt, s, $2)) wallops Version Alert for $nick using $2- $read(versions.txt, s, $2) 
  else halt 
} 


i need a timer for /ctcp $nick version

thx

Joined: Sep 2004
Posts: 200
I
Fjord artisan
Offline
Fjord artisan
I
Joined: Sep 2004
Posts: 200
for the on snotice:
$nick wont work, use $gettok($<number>,1,$asc(!)) <-- replace $asc(!) with the number it returns (im not sure which ($1, $2, ect), but one of them is the address and nickname)
and for the timer, its petty simple
use
Code:
 timer $+ $nick 1 5&lt;change 5 to the second delay, right now its at 5 seconds.&gt;  ctcp $nick version

:tongue:

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
timer $+ %nver 1 15 //notice %nver I did not receive a version reply from you


Why would you annoy someone with a completely pointless message like this. This there blocked there version reply they certianly know they have, why tell em that?
And if there bright enough to know how to block it, there bright enough to fake one for your bot if it became a problem for them if they didnt reply, so why let them know thats what your doing to allow or disallow users?

Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
You must not have wrote the script since timers are already being used... wink

Instead of a timer, create raw event for numeric 366... It's "the end" of the join process, while the :join: event is just the beginning...


NaquadaBomb
www.mirc-dll.com

Link Copied to Clipboard