mIRC Homepage
Posted By: MaGoNeGrO on 1:text - 29/07/03 06:57 AM
on 1:TEXT:*:*hello*:#: {

echo -s hellows

}

can help me ,to fix

thnx
Posted By: Xc0n Re: on 1:text - 29/07/03 07:42 AM
ON *:TEXT:{
if ($1- == Hello) {
echo -s Hellows
Posted By: lammkott Re: on 1:text - 29/07/03 08:24 AM
That won't work..

Code:
on *:TEXT:*:#: {
  if ($1 ==  Hello) { .msg $chan Hello $nick }
}
Posted By: The_Game Re: on 1:text - 29/07/03 08:29 AM
Unless i'm mistaken they want the word hellows to echo in the status window based on looking at the original code

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.
Posted By: lammkott Re: on 1:text - 29/07/03 08:33 AM
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.
Posted By: The_Game Re: on 1:text - 29/07/03 08:44 AM
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. smile
Posted By: ATMA Re: on 1:text - 29/07/03 04:55 PM
on *:TEXT:*:*: {
if (hello isin $1) { msg # Hello $nick }
}
Posted By: Watchdog Re: on 1:text - 29/07/03 05:04 PM
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.
Posted By: Hammer Re: on 1:text - 29/07/03 07:31 PM
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).
© mIRC Discussion Forums