This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

NOTICE message not appearing properly

Old posts that have not been replied to for several years.
Locked
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

NOTICE message not appearing properly

Post by Sir_Fz »

I have made a script that makes the bot cycle when i command him in private, and I added this code:

Code: Select all

if {![validchan $chan]} {
puthelp "NOTICE $nick \"Please specify a valid channel.\""
return}
but when i put an invalid channel, the bot notices me with "Please.
what should I change so that the bot will Notice me with the whole message without the ".

Thanx :)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Drop the \ and one ".
Once the game is over, the king and the pawn go back in the same box.
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Re: NOTICE message not appearing properly

Post by egghead »

Sir_Fz wrote:I have made a script that makes the bot cycle when i command him in private, and I added this code:

Code: Select all

if {![validchan $chan]} {
puthelp "NOTICE $nick "Please specify a valid channel.""
return}
but when i put an invalid channel, the bot notices me with "Please.
what should I change so that the bot will Notice me with the whole message without the ".

Thanx :)
Insert a ":"

Code: Select all

puthelp "NOTICE $nick :"Please specify a valid channel.""
or

Code: Select all

puthelp "NOTICE $nick :Please specify a valid channel."
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Oh, yah, haven't spoted it. It should work fine now..
Once the game is over, the king and the pawn go back in the same box.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Thanx.
silly me. I should have known that. :)
Locked