[Tkabber-dev] r280 - in trunk/plugins/bldjid: . msgs

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Mon Feb 1 05:30:29 MSK 2010


Author: bigote
Date: 2010-02-01 05:30:29 +0300 (Mon, 01 Feb 2010)
New Revision: 280

Modified:
   trunk/plugins/bldjid/ChangeLog
   trunk/plugins/bldjid/README
   trunk/plugins/bldjid/README.ru
   trunk/plugins/bldjid/TODO
   trunk/plugins/bldjid/bldjid.tcl
   trunk/plugins/bldjid/msgs/ru.msg
Log:
Added a possibility to log full JIDs (with resource, which is by default)
or bare ones (without it).


Modified: trunk/plugins/bldjid/ChangeLog
===================================================================
--- trunk/plugins/bldjid/ChangeLog	2010-02-01 01:45:26 UTC (rev 279)
+++ trunk/plugins/bldjid/ChangeLog	2010-02-01 02:30:29 UTC (rev 280)
@@ -1,5 +1,16 @@
 2010-02-01  Serge Yudin  <xmpp:bigote at jabber.ru> <mailto:bigote at gmail.com>
 
+--- Version 0.6.4.1 of the plugin.
+
+--- Files modified:
+    bldjid.tcl, ChangeLog, TODO, README, README.ru, msgs/ru.msg.
+
+--- Changes:
+	Added a possibility to log full (with resource) or bare (without it) JIDs.
+	(Resources are not stripped by default, as it's more informative.)
+
+2010-02-01  Serge Yudin  <xmpp:bigote at jabber.ru> <mailto:bigote at gmail.com>
+
 --- Version 0.6.4 of the plugin.
 
 --- Files modified:

Modified: trunk/plugins/bldjid/README
===================================================================
--- trunk/plugins/bldjid/README	2010-02-01 01:45:26 UTC (rev 279)
+++ trunk/plugins/bldjid/README	2010-02-01 02:30:29 UTC (rev 280)
@@ -114,6 +114,12 @@
 	in some non-anonymous room -- just turn this option off temporarily
 	and do a search in that room.
 
+--- ::plugins::bldjid::options(strip_resource)
+	As being more informative, this option is OFF by default
+	which means full JIDs with resource will be logged.
+	However, if you prefer to log bare JIDs, just set it
+	and resources will be stripped.
+
 --- ::plugins::bldjid::options(verbosity_level)
 -	Minimum level means that there will be no repeated JIDs in each room list.
 	However, if the same JID enters the same room with a different nick
@@ -121,7 +127,7 @@
 	such entrance will be also logged.
 	Timestamps will also be added to every entry to keep it easier tracking
 	user entrances.
--	Maximum level means that every entrance	of every user will be logged.
+-	Maximum level means that every entrance of every user will be logged.
 
 --- ::plugins::bldjid::options(matching_rules)
 -	"Exact" matching obliges you to provide exact parameters

Modified: trunk/plugins/bldjid/README.ru
===================================================================
--- trunk/plugins/bldjid/README.ru	2010-02-01 01:45:26 UTC (rev 279)
+++ trunk/plugins/bldjid/README.ru	2010-02-01 02:30:29 UTC (rev 280)
@@ -116,6 +116,11 @@
 	если вы хотите узнать джиды посетителей неанонимных комнат --
 	временно выключите эту опцию и сделайте поиск в нужной комнате.
 
+--- ::plugins::bldjid::options(strip_resource)
+	Эта опция по умолчанию выключена, поскольку так она выдаёт
+	более информативные результаты -- в логи пишутся полные джиды, с ресурсом.
+	Если вы предпочитаете не сохранять ресурсы, включите эту опцию.
+
 --- ::plugins::bldjid::options(verbosity_level)
 -	Минимальный уровень "надоедливости" означает, что в лог будет попадать
 	лишь первое вхождение для каждого джида. Если точнее, то для каждой пары

Modified: trunk/plugins/bldjid/TODO
===================================================================
--- trunk/plugins/bldjid/TODO	2010-02-01 01:45:26 UTC (rev 279)
+++ trunk/plugins/bldjid/TODO	2010-02-01 02:30:29 UTC (rev 280)
@@ -18,7 +18,7 @@
 ---	It would be nice to be able to show messages about nick changing
 	and also about kicking and banning people.
 
-===	Add possibility to log resource and client version
+===	Add possibility to log client version
 	for better distinguishing of visitors.
 
 ===	Fix a bug with broken monitor window if editing window size is changed.

Modified: trunk/plugins/bldjid/bldjid.tcl
===================================================================
--- trunk/plugins/bldjid/bldjid.tcl	2010-02-01 01:45:26 UTC (rev 279)
+++ trunk/plugins/bldjid/bldjid.tcl	2010-02-01 02:30:29 UTC (rev 280)
@@ -1,4 +1,4 @@
-# "Bldjid" plugin for Tkabber. 2010-02-01 v. 0.6.4
+# "Bldjid" plugin for Tkabber. 2010-02-01 v. 0.6.4.1
 # Written by Serge Yudin xmpp:bigote at jabber.ru
 # See README file for usage.
 
@@ -47,6 +47,12 @@
 			but it helps in not showing such results."] \
 			-type boolean -group Bldjid
 
+		custom::defvar options(strip_resource) 0 \
+			[::msgcat::mc "You can choose here if JIDs should be logged stripped\
+			(without resources) or not (with resources).\
+			It is not stripped by default as more informative."] \
+			-type boolean -group Bldjid
+
 		custom::defvar options(verbosity_level) min \
 			[::msgcat::mc "Verbosity level."] \
 			-type radio -group Bldjid -layout vertical -values $verbosity
@@ -161,8 +167,10 @@
 			set ts [clock format [clock seconds] \
 			-format $::plugins::options(timestamp_format)]
 			set xlib [::chat::get_xlib $chatid]
-			set real_jid [::xmpp::jid::stripResource \
-				[::muc::get_real_jid $xlib $group/$nick]]
+			set real_jid [::muc::get_real_jid $xlib $group/$nick]]
+			if {$options(strip_resource)} {
+				set real_jid [::xmpp::jid::stripResource $real_jid]
+			}
 			if {[info exists jids_by_chats($group)]} {
 				if {$options(verbosity_level) == "min"} {
 					foreach item $jids_by_chats($group) {

Modified: trunk/plugins/bldjid/msgs/ru.msg
===================================================================
--- trunk/plugins/bldjid/msgs/ru.msg	2010-02-01 01:45:26 UTC (rev 279)
+++ trunk/plugins/bldjid/msgs/ru.msg	2010-02-01 02:30:29 UTC (rev 280)
@@ -65,3 +65,4 @@
 ::msgcat::mcset ru "Bldjid log file. If empty, logs won't be saved to file." \
 "Путь к файлу логов Bldjid. Если установить в качестве значения пустую строку, логи не будут сохраняться в файл."
 ::msgcat::mcset ru "Whether the Bldjid plugin is loaded." "Загружено ли расширение Bldjid."
+::msgcat::mcset ru "You can choose here if JIDs should be logged stripped (without resources) or not (with resources). They are not stripped by default as it's more informative." "Вы можете выбрать, вырезать ли ресурс джида при ведении лога. По умолчанию ресурс не вырезается, поскольку так у вас имеется больше информации."



More information about the Tkabber-dev mailing list