
foreach line $vote_displaye($vote(display)) {
 regsub -all {\%question\%} $line "$vote(question)" line
 regsub -all {\%ja\%} $line "$vote(ja)" line
 regsub -all {\%nei\%} $line "$vote(nei)" line
 regsub -all {\%jap\%} $line "$jap\%" line
 regsub -all {\%neip\%} $line "$neip\%" line
 regsub -all {\%ver\%} $line "$vote(ver)" line
 regsub -all {\%chan\%} $line "$vote(chan)" line
 regsub -all {\\001} $line \001 line
 regsub -all {\\002} $line \002 line
 regsub -all {\\026} $line \026 line
 putserv "PRIVMSG $vote(chan) :$line"
}

#the script has this function that it sends all of the lines to the server.
#I just cant figure out how to "putserv "privmsg MODE $vote(chan) +m"", and where to put the line.