[Tkabber-dev] r1920 - in trunk/tkabber: . ifacetk

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Sat Feb 13 20:30:07 MSK 2010


Author: sergei
Date: 2010-02-13 20:30:07 +0300 (Sat, 13 Feb 2010)
New Revision: 1920

Modified:
   trunk/tkabber/ChangeLog
   trunk/tkabber/ifacetk/muc.tcl
Log:
	* ifacetk/muc.tcl: Fixed adding MUC menu to a disco node.


Modified: trunk/tkabber/ChangeLog
===================================================================
--- trunk/tkabber/ChangeLog	2010-02-08 06:32:45 UTC (rev 1919)
+++ trunk/tkabber/ChangeLog	2010-02-13 17:30:07 UTC (rev 1920)
@@ -1,3 +1,7 @@
+2010-02-13  Sergei Golovan  <sgolovan at nes.ru>
+
+	* ifacetk/muc.tcl: Fixed adding MUC menu to a disco node.
+
 2010-02-08  Sergei Golovan  <sgolovan at nes.ru>
 
 	* muc.tcl, plugins/chat/muc_commands.tcl: Fixed typos.

Modified: trunk/tkabber/ifacetk/muc.tcl
===================================================================
--- trunk/tkabber/ifacetk/muc.tcl	2010-02-08 06:32:45 UTC (rev 1919)
+++ trunk/tkabber/ifacetk/muc.tcl	2010-02-13 17:30:07 UTC (rev 1920)
@@ -269,15 +269,16 @@
 	    }
 
 	    # JID with resource is not a room JID
-	    if {[::xmpp::jid::stripResource $jid] != $jid} return
+	    if {[::xmpp::jid::removeResource $jid] != $jid} return
 
 	    # A room must have non-empty node
 	    if {[::xmpp::jid::node $jid] == ""} return
 
 	    foreach id $identities {
 		if {[::xmpp::xml::getAttr $id category] == "conference"} {
-		    if {[lsearch -exact $f http://jabber.org/protocol/muc] >= 0} {
+		    if {[lsearch -exact $features http://jabber.org/protocol/muc] >= 0} {
 			add_muc_menu_items $m $xlib $jid normal
+			break
 		    }
 		}
 	    }



More information about the Tkabber-dev mailing list