瀏覽代碼

Merge pull request #3 from tslocum/patch-1

Fix TCL 8.4 compatibility
Will Storey 12 年之前
父節點
當前提交
7dab504425
共有 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} {