From: <kak...@us...> - 2009-06-22 20:00:10
|
Revision: 11264 http://amsn.svn.sourceforge.net/amsn/?rev=11264&view=rev Author: kakaroto Date: 2009-06-22 20:00:04 +0000 (Mon, 22 Jun 2009) Log Message: ----------- Correctly check for the new clientid. Fixes bug where idlecheck gets confused. Fixes : http://www.amsn-project.net/forums/viewtopic.php?t=6701 Modified Paths: -------------- trunk/amsn/protocol.tcl Modified: trunk/amsn/protocol.tcl =================================================================== --- trunk/amsn/protocol.tcl 2009-06-20 17:18:07 UTC (rev 11263) +++ trunk/amsn/protocol.tcl 2009-06-22 20:00:04 UTC (rev 11264) @@ -6485,9 +6485,17 @@ # status with new clientid (happens if farsight takes a long time to # timeout the STUN discovery) set clientid [lindex $item 3] + set myclientid [::config::getKey clientid 0] + if { [::config::getKey protocol] < 18} { + set myclientid [lindex [split $myclientid ":"] 0] + } - if { [::config::getKey clientid 0] != $clientid || ![info exists chg_last_dp] || [::config::getKey displaypic] != $chg_last_dp } { + if { $myclientid != $clientid || + ![info exists chg_last_dp] || [::config::getKey displaypic] != $chg_last_dp } { + global autostatuschange + set tmp $autostatuschange ::MSN::changeStatus [::MSN::myStatusIs] + set autostatuschange $tmp } } return 0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |