[317] in BarnOwl Developers
[D-O-H] r462 - / trunk/owl/perl/lib/Net/Jabber
daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:04:51 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Mon, 13 Nov 2006 23:06:52 -0500 (EST)
Author: nelhage
Date: 2006-11-13 23:06:52 -0500 (Mon, 13 Nov 2006)
New Revision: 462
Modified:
/
trunk/owl/perl/lib/Net/Jabber/Namespaces.pm
Log:
r23964@heretique: nelhage | 2006-11-13 23:06:12 -0500
Net::Jabber::Owl patch to support muc configuration and history requests on MUC join
Property changes on:
___________________________________________________________________
Name: svk:merge
- 6122c8b4-0e12-0410-9533-8bcd7c66c992:/local/dirty-owl-hacks:23962
6aa88b72-b502-0410-8cb4-a5dd0230fb79:/owl-local:1356
+ 6122c8b4-0e12-0410-9533-8bcd7c66c992:/local/dirty-owl-hacks:23964
6aa88b72-b502-0410-8cb4-a5dd0230fb79:/owl-local:1356
Modified: trunk/owl/perl/lib/Net/Jabber/Namespaces.pm
===================================================================
--- trunk/owl/perl/lib/Net/Jabber/Namespaces.pm 2006-11-12 04:17:04 UTC (rev 461)
+++ trunk/owl/perl/lib/Net/Jabber/Namespaces.pm 2006-11-14 04:06:52 UTC (rev 462)
@@ -1441,6 +1441,12 @@
tag => 'x',
xpath => {
Password => { path => 'password/text()' },
+ History => {
+ type => 'child',
+ path => 'history',
+ child => { ns => '__netjabber__:iq:muc:history' },
+ calls => ['Add', 'Get', 'Set', 'Defined' ],
+ },
MUC => { type => 'master' },
},
docs => {
@@ -1448,8 +1454,27 @@
},
);
}
-
+
#-----------------------------------------------------------------------------
+# __netjabber__:iq:muc:history
+#-----------------------------------------------------------------------------
+{
+ &add_ns(ns => '__netjabber__:iq:muc:history',
+ tag => 'history',
+ xpath => {
+ MaxChars => { path => '@maxchars' },
+ MaxStanzas => { path => '@maxstanzas' },
+ Seconds => { path => '@seconds' },
+ Since => { path => '@since' }
+ },
+ docs => {
+ module => 'Net::Jabber',
+ },
+ );
+
+}
+
+#-----------------------------------------------------------------------------
# http://jabber.org/protocol/muc#admin
#-----------------------------------------------------------------------------
{
@@ -1583,7 +1608,20 @@
);
}
+
#-----------------------------------------------------------------------------
+# http://jabber.org/protocol/muc#owner
+#-----------------------------------------------------------------------------
+
+{
+ &add_ns(
+ ns => "http://jabber.org/protocol/muc#owner",
+ tag => 'query',
+ );
+}
+
+
+#-----------------------------------------------------------------------------
# http://jabber.org/protocol/pubsub
#-----------------------------------------------------------------------------
{