[Tkabber-dev] r1268 - in trunk/tkabber-plugins: . floatinglog floatinglog/msgs

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Wed Oct 10 21:45:32 MSD 2007


Author: sergei
Date: 2007-10-10 21:45:31 +0400 (Wed, 10 Oct 2007)
New Revision: 1268

Modified:
   trunk/tkabber-plugins/ChangeLog
   trunk/tkabber-plugins/floatinglog/floatinglog.tcl
   trunk/tkabber-plugins/floatinglog/msgs/ru.msg
Log:
	* floatinglog/floatinglog.tcl, floatinglog/msgs/ru.msg: Fixed
	  processing (ignoring) idle status messages (thanks to Konstantin
	  Khomoutov)


Modified: trunk/tkabber-plugins/ChangeLog
===================================================================
--- trunk/tkabber-plugins/ChangeLog	2007-10-10 16:54:30 UTC (rev 1267)
+++ trunk/tkabber-plugins/ChangeLog	2007-10-10 17:45:31 UTC (rev 1268)
@@ -4,6 +4,10 @@
 	  only personal messages (or MUC highlights) and allow not to show
 	  status changes (thanks to Konstantin Khomoutov).
 
+	* floatinglog/floatinglog.tcl, floatinglog/msgs/ru.msg: Fixed
+	  processing (ignoring) idle status messages (thanks to Konstantin
+	  Khomoutov)
+
 2007-10-07  Sergei Golovan <sgolovan at nes.ru>
 
 	* floatinglog/floatinglog.tcl: Fixed doubleclick bindings to JIDs

Modified: trunk/tkabber-plugins/floatinglog/floatinglog.tcl
===================================================================
--- trunk/tkabber-plugins/floatinglog/floatinglog.tcl	2007-10-10 16:54:30 UTC (rev 1267)
+++ trunk/tkabber-plugins/floatinglog/floatinglog.tcl	2007-10-10 17:45:31 UTC (rev 1268)
@@ -8,8 +8,7 @@
 
     variable id 0
     variable winname .floatinglog
-    variable idlestring [::msgcat::mc "Idle for %s"]
-    variable idlestring [string range $idlestring 0 [string length idlestring]]
+    variable idlepat [string map {%s *} [::msgcat::mc "Idle for %s"]]
 
     #
     # Options section
@@ -292,12 +291,12 @@
 }
 
 proc floatinglog::process_status {text} {
-    variable idlestring
+    variable idlepat
     variable options
 
     if {!$options(show_notifications)} return
+    if {[string match $idlepat $text]} return
 
-    if {[string first $idlestring $text] != -1} return
     add_text $text
 }
 

Modified: trunk/tkabber-plugins/floatinglog/msgs/ru.msg
===================================================================
--- trunk/tkabber-plugins/floatinglog/msgs/ru.msg	2007-10-10 16:54:30 UTC (rev 1267)
+++ trunk/tkabber-plugins/floatinglog/msgs/ru.msg	2007-10-10 17:45:31 UTC (rev 1268)
@@ -4,7 +4,7 @@
 ::msgcat::mcset ru "From: " "От: "
 ::msgcat::mcset ru "Floating Log plugin options." "Настройки расширения Плавающий журнал."
 ::msgcat::mcset ru "Floating Log window properties." "Свойства окна плавающего журнала."
-::msgcat::mcset ru "Idle for %s" "Время бездействия %s"
+::msgcat::mcset ru "Idle for %s" "Время бездействия: %s"
 ::msgcat::mcset ru "Incoming message" "Входящее сообщение"
 ::msgcat::mcset ru "Message types to show." "Типы сообщений, которые следует показывать."
 ::msgcat::mcset ru "Plugins options." "Настройки расширений."



More information about the Tkabber-dev mailing list