Fossil SCM

Use tcl_platform to determine username, this is platform independent

mjanssen 2007-09-24 21:05 trunk
Commit e0232ce1a0317187b91df415b5dcd51119680f45
1 file changed +2 -2
--- tools/fossil_chat.tcl
+++ tools/fossil_chat.tcl
@@ -79,16 +79,16 @@
7979
catch {puts $SOCKET noop; flush $SOCKET}
8080
}
8181
8282
# Connect to the server
8383
proc connect {} {
84
- global SOCKET env
84
+ global SOCKET tcl_platform
8585
catch {close $SOCKET}
8686
if {[catch {
8787
set SOCKET [socket $::SERVERHOST $::SERVERPORT]
8888
fconfigure $SOCKET -translation binary -blocking 0
89
- puts $SOCKET [list login $env(USER) fact,fuzz]
89
+ puts $SOCKET [list login $tcl_platform(user) fact,fuzz]
9090
flush $SOCKET
9191
fileevent $SOCKET readable handle_input
9292
keep_alive
9393
} errmsg]} {
9494
if {[tk_messageBox -icon error -type yesno -parent . -message \
9595
--- tools/fossil_chat.tcl
+++ tools/fossil_chat.tcl
@@ -79,16 +79,16 @@
79 catch {puts $SOCKET noop; flush $SOCKET}
80 }
81
82 # Connect to the server
83 proc connect {} {
84 global SOCKET env
85 catch {close $SOCKET}
86 if {[catch {
87 set SOCKET [socket $::SERVERHOST $::SERVERPORT]
88 fconfigure $SOCKET -translation binary -blocking 0
89 puts $SOCKET [list login $env(USER) fact,fuzz]
90 flush $SOCKET
91 fileevent $SOCKET readable handle_input
92 keep_alive
93 } errmsg]} {
94 if {[tk_messageBox -icon error -type yesno -parent . -message \
95
--- tools/fossil_chat.tcl
+++ tools/fossil_chat.tcl
@@ -79,16 +79,16 @@
79 catch {puts $SOCKET noop; flush $SOCKET}
80 }
81
82 # Connect to the server
83 proc connect {} {
84 global SOCKET tcl_platform
85 catch {close $SOCKET}
86 if {[catch {
87 set SOCKET [socket $::SERVERHOST $::SERVERPORT]
88 fconfigure $SOCKET -translation binary -blocking 0
89 puts $SOCKET [list login $tcl_platform(user) fact,fuzz]
90 flush $SOCKET
91 fileevent $SOCKET readable handle_input
92 keep_alive
93 } errmsg]} {
94 if {[tk_messageBox -icon error -type yesno -parent . -message \
95

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button