File: draw_error.tcl

package info (click to toggle)
tkabber 0.9.7-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,756 kB
  • ctags: 1,593
  • sloc: tcl: 32,453; xml: 1,847; sh: 1,408; makefile: 72
file content (15 lines) | stat: -rw-r--r-- 353 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# $Id: draw_error.tcl,v 1.1 2002/11/02 20:42:03 alexey Exp $

proc handle_error {chatid from type body x} {

    if {[cequal $type error]} {
	set chatw [chat::chat_win $chatid]
	$chatw insert end $body err

	set cw [chat::winid $chatid]
	tab_set_updated $cw 1 error

	return stop
    }
}
hook::add draw_message_hook [namespace current]::handle_error 10