Detection de lien

Contenu du snippet

Ce code vous previendra dès qu'un personne prononcera un site Web sur un salon quelquonc...

Source / Exemple :


on *:TEXT:*http*:*:{
  If ($readini mirc.ini chasseururl activ = ok) { 
    /write url.txt ( $+ $time $+ ) - ( $+ $date $+ ) < $+ $nick $+ > $1-
    If (http isin $1) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $1 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $1 }
    ElseIf (http isin $2) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $2 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $2 }
    ElseIf (http isin $3) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $3 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $3 }
    ElseIf (http isin $4) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $4 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $4 }
    ElseIf (http isin $5) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $5 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $5 }
    ElseIf (http isin $6) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $6 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $6 }
    ElseIf (http isin $7) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $7 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $7 }
    ElseIf (http isin $8) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $8 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $8 }
    ElseIf (http isin $9) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $9 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $9 }
    ElseIf (http isin $10) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $10 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $10 }
    ElseIf (http isin $11) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $11 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $11 }
    ElseIf (http isin $12) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $12 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $12 }
    ElseIf (http isin $13) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $13 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $13 }
    ElseIf (http isin $14) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $14 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $14 }
    ElseIf (http isin $15) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $15 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $15 }
    ElseIf (http isin $16) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $16 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $16 }
    ElseIf (http isin $17) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $17 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $17 }
  }
  Else halt
}
on *:TEXT:*www*:*:{
  If ($readini mirc.ini chasseururl activ = ok) { 
    /write url.txt ( $+ $time $+ ) - ( $+ $date $+ ) < $+ $nick $+ > $1-
    If (www isin $1) { /echo -a 15-( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $1 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $1 }
    ElseIf (www isin $2) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $2 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $2 }
    ElseIf (www isin $3) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $3 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $3 }
    ElseIf (www isin $4) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $4 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $4 }
    ElseIf (www isin $5) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $5 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $5 }
    ElseIf (www isin $6) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $6 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $6 }
    ElseIf (www isin $7) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $7 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $7 }
    ElseIf (www isin $8) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $8 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $8 }
    ElseIf (www isin $9) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $9 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $9 }
    ElseIf (www isin $10) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $10 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $10 }
    ElseIf (www isin $11) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $11 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $11 }
    ElseIf (www isin $12) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $12 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $12 }
    ElseIf (www isin $13) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $13 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $13 }
    ElseIf (www isin $14) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $14 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $14 }
    ElseIf (www isin $15) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $15 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $15 }
    ElseIf (www isin $16) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $16 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $16 }
    ElseIf (www isin $17) { /echo -a -( $+ $time(hh:nn) $+ )- 9[ 8URL Détécté : $17 9] 15 Appuyer sur F4 pour y aller | set %autoWeb $17 }
  }
  Else halt
}

Conclusion :


Pour que ce code fonctionne, ajouter ce morceau de code dans la partie "Aliase"
/F4 //Run %autoWeb

A voir également

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.