the if statement is never evaluating to be true... when i post an ip for example:
; text event, no specific matchtext
on *:text:*:#:{
; loop all the $N "words" of text $1-
var %i = 1
while ($eval($ $+ %i,2) != $null) {
; check the "word" (with control codes stripped) for being a valid IP
if ($iptype($strip($v1))) {
; if so, do stuff (like echo, check further, save...).
; $v1 is now the IP-type, and $strip($eval($ $+ %i,2)) will be the IP itself
.msg $chan if statement is true!
}
inc %i
}
}
Last edited by Nikoleye; 24/05/11 12:49 AM.