mIRC Home    About    Download    Register    News    Help

Print Thread
#249972 25/12/14 11:25 AM
Joined: Sep 2011
Posts: 37
C
Chinshy Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Sep 2011
Posts: 37
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

Chinshy #249973 25/12/14 01:10 PM
Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Do you have another connect event? Only one will fire per script.

Chinshy #249974 25/12/14 03:43 PM
Joined: Sep 2011
Posts: 37
C
Chinshy Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Sep 2011
Posts: 37
idk but i think u can do a multi connect event ?

Last edited by Chinshy; 25/12/14 03:45 PM.
Chinshy #249975 25/12/14 05:58 PM
Joined: Nov 2014
Posts: 149
J
Vogon poet
Offline
Vogon poet
J
Joined: Nov 2014
Posts: 149
Originally Posted By: Chinshy
idk but i think u can do a multi connect event ?

You can not have multiple events ON CONNECT in the same script.

JuanAm #250000 28/12/14 09:42 PM
Joined: Mar 2014
Posts: 215
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
Originally Posted By: JuanAm
Originally Posted By: Chinshy
idk but i think u can do a multi connect event ?

You can not have multiple events ON CONNECT in the same script.


you can have an on connect event with multiple lines, but you can not have multiple on connect events withing the same remote file


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
Joined: Sep 2011
Posts: 37
C
Chinshy Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Sep 2011
Posts: 37
okay its working now but what if i want it only work with the rooms that doesnt have @ on it


Link Copied to Clipboard