I think I found where the problem begin
If I only use this it´s OK an working fine
on *:text:*:#:{
if ($chan == #chan1) {
if ($nick == billgates) {
var %string = call
if (%string isin $1-) { splay notice.wav }
}
BUT! when i use the whole code it´s
NOT working
on *:text:*:#:{
[color:red]if ($nick == billgates) && ($nick ison #chan1) { [/color]
if (call isin $1-) { splay notice.wav }
}
[color:red]elseif ($nick == mom) && ($nick ison #channel2) { [/color]
if (hello isin $1-) { splay notice.wav }
}
}
Btw i edited the code a little just above here
The problem i usee with that script is that IF $chan == CHAN1 and then else if $chan == chan2
well it should start by evaluatiing the nicknames first and at same time evaluating weather this nick is on channel 1 or 2
the code obviously wont work if mom ison channel 1 or if billgates ison #channel 2
but start by evaluating the $nicks in that method
as well has creating a var for the strings why not just use
if (word isin $1-) or if you need more then one word if (word word iswm $1-)
---
edited code to remove the uneccesary var