<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -218,7 +218,7 @@ module Jabber
       # node:: [String]
       # return:: true
       def purge_items_from(node)
-        iq = basic_pubsub_query(:set)
+        iq = basic_pubsub_query(:set, true)
         purge = REXML::Element.new('purge')
         purge.attributes['node'] = node
         iq.pubsub.add(purge)</diff>
      <filename>lib/xmpp4r/pubsub/helper/servicehelper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a506a856bbf0f5ccf9c5e781e638df812346107b</id>
    </parent>
  </parents>
  <author>
    <name>Lucas Nussbaum</name>
    <email>lucas@lucas-nussbaum.net</email>
  </author>
  <url>http://github.com/ln/xmpp4r/commit/37466c529b7ecf79e1a395c027d9b41335621737</url>
  <id>37466c529b7ecf79e1a395c027d9b41335621737</id>
  <committed-date>2009-09-16T00:49:24-07:00</committed-date>
  <authored-date>2009-09-16T00:49:24-07:00</authored-date>
  <message>Pubsub: fix namespace for purge_items_from

Received from lfcipriani on github.com:
--------------------
Hi Lucas,

I found a simple but annoying bug on pubsub support of xmpp4r, I think
that
isn't worthy to clone and send a push request to you. So, here it is:

On method purge_items_from of service_helper.rb

      def purge_items_from(node)
        iq = basic_pubsub_query(:set)
        purge = REXML::Element.new('purge')
        purge.attributes['node'] = node
        iq.pubsub.add(purge)
        @stream.send_with_id(iq)
      end

The call to method basic_pubsub_query(:set) should be
basic_pubsub_query(:set, true), because the namespace of this command is
pubsub#owner.

That's it. Thanks for this really useful gem.
--------------------</message>
  <tree>8bcd45c76009c9573dc941399348d78db4a10a45</tree>
  <committer>
    <name>Lucas Nussbaum</name>
    <email>lucas@lucas-nussbaum.net</email>
  </committer>
</commit>
