Find Host

By Marc on Jan 26, 2010

Ce script permet de retracer via la commande "!find " l'host de la personne donner.
Le tout étant stocker dans un fichier nommé join.ini

[b]MAJ :

    • Change $address(..) for $wildsite (26/01/10)
    • Added ! to on !:JOIN:: (26/01/10)
    • Added a regex caption (27/01/10)
      [/b]
;
; Find Host system
; By marcqc irc.espace-chat.org @ #marcqc.com
;
;

on !*:join:#channel:{
  echo @host host - $nick : $wildsite
  writeini -n join.ini $nick 1 $wildsite
  msg #staff_log 4JOIN2 $nick 7: $wildsite
}
on *:TEXT:/^[.!@+]find/Si:*:{
    msg #staff_channel HOST4 $2 $+ 2: $readini(join.ini, $+ $2 $+ ,1)
  }

on *:input:*:{
  if (!find == $1) {
    msg #services HOST4 $2 $+ 2: $readini(join.ini, $+ $2 $+ ,1)
  }
}

Comments

Sign in to comment.
Flux   -  Aug 30, 2010

when i do !find theres no such results, my bot is no response,. how to use this?. o.O .. it's save in join.ini file but when i !find no results..

 Respond  
Jethro   -  Jan 26, 2010

You don't have to have the hosts "deleted." That's when the /hsave and /hload command come in handy. :-)

 Respond  
Marc   -  Jan 26, 2010

I believe that introducing a "hash table" on the scripts would not be good ... I do not intend to delete the host after a certain time. This could eat the RAM since the computer records all the host of all users who join the channel.

 Respond  
Marc   -  Jan 26, 2010

Thank you for your comment, unfortunately I do not know how to use the "hash table"

 Respond  
Jethro   -  Jan 26, 2010

You may need the ! prefix so that it won't record the client running the code: > on !*:join:#channel:{You can use

$wildsite

instead of the > $address($nick,2), which is shorter. It'd be suitable to use a hash table for this if you have a big, busy channel with different people joining on a daily basis.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.