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.

file

Old posts that have not been replied to for several years.
Locked
K
KID

file

Post by KID »

hi ppl

1º /msg botnick add bla bla
2º /msg botnick add ble ble

my bot writes in a txt file like this
bla bla
ble ble

how do i change my tcl to do this:

bla bla ..... ble ble

tks
I
Iridium

Post by Iridium »

:-? we need some code so we can see how you're doing it currently..

You probably want to strip your input of \n's.. but I'm not sure because I think puts might put them in anyway..
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

puts does place a \n in by default.

To get around this, use the -nonewline option for puts

EG

Code: Select all

puts -nonewline CHANNELID "string to send to the channel"
I
Iridium

Post by Iridium »

thats the one :)
Locked