[Tkabber-dev] r199 - trunk/plugins/bldjid

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Mon Apr 6 06:20:06 MSD 2009


Author: bigote
Date: 2009-04-06 06:20:06 +0400 (Mon, 06 Apr 2009)
New Revision: 199

Modified:
   trunk/plugins/bldjid/ChangeLog
   trunk/plugins/bldjid/README
   trunk/plugins/bldjid/TODO
   trunk/plugins/bldjid/bldjid.tcl
Log:
Option added to set a custom field separator for /visit* commands.


Modified: trunk/plugins/bldjid/ChangeLog
===================================================================
--- trunk/plugins/bldjid/ChangeLog	2009-04-06 01:39:37 UTC (rev 198)
+++ trunk/plugins/bldjid/ChangeLog	2009-04-06 02:20:06 UTC (rev 199)
@@ -1,5 +1,14 @@
 2009-04-06  Serge Yudin  <xmpp:bigote at jabber.ru> <mailto:bigote at gmail.com>
 
+--- Version 0.5.4 of the plugin.
+--- Files modified:
+    bldjid.tcl, TODO, README, ChangeLog.
+
+--- Changes:
+	Option added to set a custom field separator for /visit* commands.
+
+2009-04-06  Serge Yudin  <xmpp:bigote at jabber.ru> <mailto:bigote at gmail.com>
+
 --- Version 0.5.3 of the plugin.
 --- Files modified:
     bldjid.tcl, ChangeLog.

Modified: trunk/plugins/bldjid/README
===================================================================
--- trunk/plugins/bldjid/README	2009-04-06 01:39:37 UTC (rev 198)
+++ trunk/plugins/bldjid/README	2009-04-06 02:20:06 UTC (rev 199)
@@ -105,6 +105,9 @@
 	if Minimum verbosity level is chosen. If not, if would be almost the same
 	as ::muc::options(gen_enter_exit_msgs) messages (without exit messages).
 
+--- ::plugins::bldjid::options(custom_separator)
+	Custom field separator for /visit* commands. Default value is "||".
+
 ================
 ####  MISC  ####
 ================

Modified: trunk/plugins/bldjid/TODO
===================================================================
--- trunk/plugins/bldjid/TODO	2009-04-06 01:39:37 UTC (rev 198)
+++ trunk/plugins/bldjid/TODO	2009-04-06 02:20:06 UTC (rev 199)
@@ -4,9 +4,6 @@
     How much? I have about 12 rooms and a couple of them are quite populated.
     So the list grows some 700 records a day. I think 3000 by default would be OK.
 	However, this parameter will be customizable.
---- options(separator) will give a possibility to adapt	the look
-	of user list to your feelings. Now the separator is '||'
-	and it is set within plugin's code.
 
 === Add possibility to track nick changes when logging.
 

Modified: trunk/plugins/bldjid/bldjid.tcl
===================================================================
--- trunk/plugins/bldjid/bldjid.tcl	2009-04-06 01:39:37 UTC (rev 198)
+++ trunk/plugins/bldjid/bldjid.tcl	2009-04-06 02:20:06 UTC (rev 199)
@@ -1,4 +1,4 @@
-# "Bldjid" plugin for Tkabber. 2009-04-06 v. 0.5.3
+# "Bldjid" plugin for Tkabber. 2009-04-06 v. 0.5.4
 # Written by Serge Yudin xmpp:bigote at jabber.ru
 # See README file for usage.
 
@@ -53,6 +53,11 @@
 			about user entrances (will only work with Minimum verbosity level)."] \
 			-type boolean -group Bldjid
 
+		custom::defvar options(custom_separator) "||" \
+			[::msgcat::mc "Field separator for /visit* commands."] \
+			-type string -group Bldjid
+
+
 #    custom::defvar options(log_length) 3000 \
 #        [::msgcat::mc "Max length of your JID list. Empty field means unlimited."] \
 #        -type integer -group Bldjid
@@ -583,7 +588,8 @@
 }
 
 proc bldjid::format_msg {msg n} {
-	set sep "||"
+	variable options
+	set sep $options(custom_separator)
 	set x 0
 	foreach item $msg {
 		if {$item == "" && $x == 0} {



More information about the Tkabber-dev mailing list