got this code
ON *:CONNECT: { Window -n @Badword }
on ^*:text:*:#:{
if ($regex($strip($1-),/(hello|welcome|unwelcome|thanks)/i)) {
echo @Badword $timestamp [BadWord Monitor] >> $nick $address($1,2) wrote in $chan text: $$1-
}
}
but the window @Badword doesnt open in connect
same as when someone mention word1 or word2 it comes at status
@Badword (01:17:29) [BadWord Monitor] >> Valen wrote in #logan text: hello there
i want it to come at the window @Badword