exit command added

This commit is contained in:
zimoch
2011-09-12 09:52:48 +00:00
parent ff46c9a4a7
commit 807fe825d6

View File

@ -74,6 +74,9 @@ proc receiveHandler {sock} {
set l [split $a] set l [split $a]
if [catch { if [catch {
switch -- [lindex $l 0] { switch -- [lindex $l 0] {
"exit" {
exit
}
"disconnect" { "disconnect" {
sendReply $sock [string range $a 11 end] sendReply $sock [string range $a 11 end]
destroy .$sock destroy .$sock