This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Special char problem

Old posts that have not been replied to for several years.
Locked
J
Juustro
Voice
Posts: 11
Joined: Wed Oct 02, 2002 4:15 pm

Special char problem

Post by Juustro »

this text comes from external app

HLS 80.74.213.237:27015 Auria Pelikaista - *Sota* - DoDFi.net - [FF=ON] [C-D MEDIATOR] dod_ramelle 20 20 13 0

and returned by proc:

Code: Select all

proc qstat_get_server_info { server type } {
	global qstat_location
	return [exec  $qstat_location -sort g -ts -raw " " -default $type $server]
}
i parse text to: Auria Pelikaista - *Sota* - DoDFi.net - [FF=ON] [C-D MEDIATOR]

Code: Select all

	set stat [qstat_get_server_info $q_clan(server_ip) $q_clan(server_type)]
	set list_count [llength $stat]
	set server(type) [lindex $stat 0]
	set server(ip) [lindex $stat 1]
	set server(name) [lrange $stat 2 [expr $list_count - 6]]
that but when i msg it to channel or nick it shows: Auria Pelikaista - *Sota* - DoDFi.net - {[FF=ON]} {[C-D} MEDIATOR\]

who to fix?

Edit: no need enymore.. this msg can be deletet
M
MC_8
Voice
Posts: 36
Joined: Sat Apr 26, 2003 5:04 pm
Location: Dallas, Texas
Contact:

Post by MC_8 »

Code: Select all

  set stat [qstat_get_server_info $q_clan(server_ip) $q_clan(server_type)] 
  set stat [split $stat]
  set list_count [llength $stat] 
  set server(type) [lindex $stat 0] 
  set server(ip) [lindex $stat 1] 
  set server(name) [join [lrange $stat 2 [expr $list_count - 6]]]
Carl M. Gregory - MC_8
http://mc.purehype.net/whois/
Locked