on 1:TEXT:*:*hello*:#: {
echo -s hellows
}
can help me ,to fix
thnx
ON *:TEXT:{
if ($1- == Hello) {
echo -s Hellows
Unless i'm mistaken they want the word hellows to echo in the status window based on looking at the original code
on *:TEXT:*:#: {
if ($1 == Hello) { echo -s hellows }
}
But if they meant to reply back hello, then yes what you posted will work. But they didn't say.
Well what I displayed was just code that I have saved for when people ask for help with an auto-response script... So I'll blame that mistake on cut+paste.
No big deal, besides, I wouldn't look at it as a mistake from c/p, you may be right I may be wrong. Either way the user has both examples to work with.
on *:TEXT:*:*: {
if (hello isin $1) { msg # Hello $nick }
}
The user wants to echo to channels, not every window type so why have you replaced # with *? If you are gunna abuse people, at least answer the question properly.
on 1:TEXT:*:*hello*:#:{ echo -s hellows }
See that extra *: you have in there? Remove it and it will work.
on 1:TEXT:*hello*:#:{ echo -s hellows }
Why did everyone reformat what was asked for? ($1 == Hello) is not the same as :*hello*:, though (*hello* iswm $1-) or (hello isin $1-) would be. MaGoNeGrO only wanted to echo to status the word hellows, presumably to test it, if the word hello appeared anywhere on the line, (leaving aside the mistaken copy/paste described above).