set f [open $file]
seek $f $pos
if {[gets $f line]>-1} {
putserv "privmsg $chan :$line"
it will read line by line from the file.txt the problem is i have long sentence in 1 line is there any way to split it? when the script read . [dot] it will do new privmsg and continue the story.
anyone know it please i really stuck on it
thx
this is the line i want to display on the first line.\nThis will be displayed on the secondline.\nAnd this the third etc etc etc
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
proc output { nick channel msg } {
# Build string
set strPrepend "PRIVMSG $channel :"
# Send it out
set line_array [split $msg "."]
foreach line $line_array { putserv "$strPrepend$line" }
}
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born