save as global string, list or array, depending how you need them ^-^. There are almost no limits . if you tell us more details we might be able to recommned you one these 3 methodes ^-^.
i have some procs where i need these 7 lines
"
line1
line2
line3
line4
line5
line6
line7
"
but i don't want to write everyone in every proc
i want do have
putserv "PRIVMSG $chan : $var"
and my bot will post these 7 lines one after the other one just like
putserv "PRIVMSG $chan :line1"
putserv "PRIVMSG $chan :line2"
...and so on
how it is possible ?
set mylines(1) "bla..."
...
set mylines(7) "bla..."
...
proc ...
for {set i 1} {$i <= 7} {incr i} {
puthelp "PRIVMSG $chan :$::mylines($i)"
}
dont forget to adjust '$i <= 7' if you change the number of lines, you can even set something like:
set mylines(count) 7
and check via:
$i <= $::mylines(count)
however, if the number changes often you should consider using a list .