File: draw_server_message.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-- 526 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# $Id: draw_server_message.tcl,v 1.3 2003/06/21 19:16:25 aleksey Exp $

proc handle_server_message {chatid from type body x} {
    set jid [chat::get_jid $chatid]
    if {[cequal $type groupchat] && [string equal $jid $from]} {
	set chatw [chat::chat_win $chatid]

	$chatw insert end --- server_lab " "
	chat::add_emoteiconed_text [::chat::chat_win $chatid] $body server
	set cw [chat::winid $chatid]
	tab_set_updated $cw 1 server
	return stop
    }
}
hook::add draw_message_hook [namespace current]::handle_server_message 20