瀏覽代碼

Fix TCL 8.4 compatibility

Trevor Slocum 12 年之前
父節點
當前提交
7ffc5da32a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      slang.tcl

+ 1 - 0
slang.tcl

@@ -80,6 +80,7 @@ proc ud::handler {nick uhost hand chan argv} {
 }
 
 proc ud::output {chan def_dict} {
+	set output 0
 	foreach line [ud::split_line $ud::line_length [dict get $def_dict definition]] {
 		if {[incr output] > $ud::max_lines} {
 			if {$ud::show_truncate} {