[Tkabber-dev] r1296 - in trunk/tkabber: . plugins/general

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Tue Oct 30 20:44:39 MSK 2007


Author: sergei
Date: 2007-10-30 20:44:39 +0300 (Tue, 30 Oct 2007)
New Revision: 1296

Modified:
   trunk/tkabber/ChangeLog
   trunk/tkabber/plugins/general/rawxml.tcl
Log:
	* plugins/general/rawxml.tcl: Fixed sending messages from raw XML
	  console (thanks to Konstantin Khomoutov).


Modified: trunk/tkabber/ChangeLog
===================================================================
--- trunk/tkabber/ChangeLog	2007-10-28 20:01:52 UTC (rev 1295)
+++ trunk/tkabber/ChangeLog	2007-10-30 17:44:39 UTC (rev 1296)
@@ -1,3 +1,8 @@
+2007-10-30  Sergei Golovan  <sgolovan at nes.ru>
+
+	* plugins/general/rawxml.tcl: Fixed sending messages from raw XML
+	  console (thanks to Konstantin Khomoutov).
+
 2007-10-28  Sergei Golovan  <sgolovan at nes.ru>
 
 	* ifacetk/unix.xrdb: Fixed balloons resources.

Modified: trunk/tkabber/plugins/general/rawxml.tcl
===================================================================
--- trunk/tkabber/plugins/general/rawxml.tcl	2007-10-28 20:01:52 UTC (rev 1295)
+++ trunk/tkabber/plugins/general/rawxml.tcl	2007-10-30 17:44:39 UTC (rev 1296)
@@ -304,7 +304,12 @@
     lvarpush history(stack) $xml 1
     set history(pos) 0
 
-    jlib::outmsg $xml
+    if {[llength [::jlib::connections]] == 0} {
+	return -code error [::msgcat::mc "Not connected"]
+    } else {
+	set connid [lindex [::jlib::connections] 0]
+	jlib::outmsg $xml -connection $connid
+    }
     $input delete 1.0 end
 }
 
@@ -490,3 +495,4 @@
 
 hook::add save_session_hook [namespace current]::rawxml::save_session
 
+# vim:ts=8:sw=4:sts=4:noet



More information about the Tkabber-dev mailing list