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

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Sun Apr 5 15:18:24 MSD 2009


Author: bigote
Date: 2009-04-05 15:18:24 +0400 (Sun, 05 Apr 2009)
New Revision: 196

Modified:
   trunk/plugins/bldjid/ChangeLog
   trunk/plugins/bldjid/README
   trunk/plugins/bldjid/TODO
   trunk/plugins/bldjid/bldjid.tcl
Log:
The plugin is able now to gather logs even when
::muc::options(gen_enter_exit_msgs) option is enabled.
It's useful if you clean chat windows from time to time.


Modified: trunk/plugins/bldjid/ChangeLog
===================================================================
--- trunk/plugins/bldjid/ChangeLog	2009-04-05 01:30:26 UTC (rev 195)
+++ trunk/plugins/bldjid/ChangeLog	2009-04-05 11:18:24 UTC (rev 196)
@@ -1,5 +1,16 @@
 2009-04-05  Serge Yudin  <xmpp:bigote at jabber.ru> <mailto:bigote at gmail.com>
 
+--- Version 0.5.1 of the plugin.
+--- Files modified:
+    bldjid.tcl, TODO, README, ChangeLog.
+
+--- Changes:
+	The plugin is able now to gather logs even when
+	::muc::options(gen_enter_exit_msgs) option is enabled.
+	It's useful if you clean chat windows from time to time.
+
+2009-04-05  Serge Yudin  <xmpp:bigote at jabber.ru> <mailto:bigote at gmail.com>
+
 --- Version 0.5 of the plugin.
 --- Files modified:
     bldjid.tcl, TODO, README, ChangeLog.

Modified: trunk/plugins/bldjid/README
===================================================================
--- trunk/plugins/bldjid/README	2009-04-05 01:30:26 UTC (rev 195)
+++ trunk/plugins/bldjid/README	2009-04-05 11:18:24 UTC (rev 196)
@@ -79,13 +79,12 @@
 At the moment only few of them are enabled, which are the following:
 
 --- ::plugins::bldjid::options(enabled)
-	Turns on JIDs gathering. ::muc::options(gen_enter_exit_msgs) must be disabled.
-	Commands /banjid, /bldjid, /unbldjid, /amnesty don't need it, however.
+	Turns on JIDs gathering.
 
 --- ::plugins::bldjid::options(filter_admin_rooms)
 	If you don't want rooms where you don't have admin privileges
 	to be listed by /visit* commands, turn on this option (default setting).
-	Bldjid still gathers logs for such rooms, it just doesn't display them.
+	Bldjid still will gather logs for such rooms, it just won't display them.
 
 --- ::plugins::bldjid::options(verbosity_level)
 	Minimum level means that there will be no repeated JIDs

Modified: trunk/plugins/bldjid/TODO
===================================================================
--- trunk/plugins/bldjid/TODO	2009-04-05 01:30:26 UTC (rev 195)
+++ trunk/plugins/bldjid/TODO	2009-04-05 11:18:24 UTC (rev 196)
@@ -8,9 +8,6 @@
 	of user list to your feelings. Now the separator is '||'
 	and it is set within plugin's code.
 
-=== Gather JIDs regardless of ::muc::options(gen_enter_exit_msgs) state.
-	It's useful if you want to clean chat window, so no JIDs will be lost.
-
 === Add matching rules for /visit* commands to be able processing
 	not only exact room and nick names.
 

Modified: trunk/plugins/bldjid/bldjid.tcl
===================================================================
--- trunk/plugins/bldjid/bldjid.tcl	2009-04-05 01:30:26 UTC (rev 195)
+++ trunk/plugins/bldjid/bldjid.tcl	2009-04-05 11:18:24 UTC (rev 196)
@@ -1,4 +1,4 @@
-# "Bldjid" plugin for Tkabber. 2009-04-05 v. 0.5
+# "Bldjid" plugin for Tkabber. 2009-04-05 v. 0.5.1
 # Written by Serge Yudin xmpp:bigote at jabber.ru
 # See README file for usage.
 
@@ -27,8 +27,7 @@
 		custom::defgroup Bldjid [::msgcat::mc "Bldjid options."] -group Plugins
 
 		custom::defvar options(enabled) 1 \
-			[::msgcat::mc "Enable JIDs logging (only works if\
-			::muc::options(gen_enter_exit_msgs) is disabled)."] \
+			[::msgcat::mc "Enable JIDs logging."] \
 			-type boolean -group Bldjid
 
 		custom::defvar options(filter_admin_rooms) 1 \
@@ -58,7 +57,7 @@
 proc bldjid::smart_enter_exit_message {xlib jid type x args} {
 	global grouproster
 	variable options
-	if {!($options(enabled) && !$::muc::options(gen_enter_exit_msgs))} {
+	if {!$options(enabled)} {
 		return
 	}
 	set group [::xmpp::jid::stripResource $jid]
@@ -237,12 +236,6 @@
 		/visitors {
 			variable options
 			set group [chat::get_jid $chatid]
-			if {$::muc::options(gen_enter_exit_msgs)} {
-				chat::add_message $chatid $group error \
-				"You are trying to use this command while the option \
-				::muc::options(gen_enter_exit_msgs) is enabled." {}
-				return stop
-			}
 			global jids_by_chats
 			set user_list {}
 			if {$room == ""} {
@@ -277,13 +270,6 @@
 		/visited {
 			variable options
 			set group [chat::get_jid $chatid]
-			if {$::muc::options(gen_enter_exit_msgs)} {
-				chat::add_message $chatid $group error \
-				"You are trying to use this command while the option\
-				::muc::options(gen_enter_exit_msgs) is enabled." {}
-				return stop
-			}
-
 			global jids_by_chats
 			set user_list {}
 			if {$nick == ""} {



More information about the Tkabber-dev mailing list