This simple script executes a binary and just tries to output the result.
BUT the second and third "--------------" lines are never displayed!? Why?
I guess it's either Eggdrop or the ircd that removes 'duplicate lines', or what?
What's the critieria for detecting 'duplicate lines'?
How can I change this behaviour?
I have seen work-arounds by other people, like adding a unique color code to the end f the line with \003xx where xx is a number that gets increased for each line.
But I would like to understand how all this works, before making work-arounds...

This is my first real script, so please help me...

Code: Select all
set outchan "#test"
set binary(REQUESTSHOW) "/glftpd/bin/requestshow"
proc killalltimers {} { foreach ut [utimers] { killutimer [lindex $ut 2] } }
killalltimers
proc requestshow { } {
global binary
global outchan
utimer 150 requestshow
putserv "NOTICE $outchan : Current requests"
putserv "NOTICE $outchan :------------------------------------------------------------------------"
putserv "NOTICE $outchan :UserName -> Request"
putserv "NOTICE $outchan :------------------------------------------------------------------------"
foreach line [split [exec $binary(REQUESTSHOW)] \n] {
putserv "NOTICE $outchan :$line"
}
putserv "NOTICE $outchan :------------------------------------------------------------------------"
}
utimer 150 requestshow
Eggdrop = 1.6.13
ircd = latest undernet ircd
Everything running on Debian Linux.