Hi -

Argh - I should have made that:
 $iq = $self->iq_class->downbless($iq);

But, yes, just removing the bless() works as there is nothing special in
package DJabberd::Plugin::VCard::IQ.

Cheers.



On Mon, Apr 06, 2009 at 11:45:07AM +0400, Vladimir Lettiev wrote:
> 2009/4/6 Piers Harding <pi...@*>:
> >
> > I was wondering if anyone else had seen a problem with VCard, with a
> > symptom of:
> > ERROR DJabberd.Connection.ClientIn ? ? ? ? ? ? 1 disconnected 
> > DJabberd::Connection::ClientIn=HASH(0x39c22f8) because: Modification of a 
> > read-only value attempted at 
> > /home/piers/code/DJabberd/djabberd/DJabberd-VCard/lib/DJabberd/Plugin/VCard.pm
> >  line 39.
> 
> Confirm, same error.
> 
> > In order to fix this (and related) I've had to change the bless to
> > downbless for nodes that are currently blessed as DJabberd::IQ:
> > Index: djabberd/DJabberd-VCard/lib/DJabberd/Plugin/VCard.pm
> 
> just commented out "bless $iq, $self->iq_class;" to fix.
> 
> >
> > Any ideas?
> >
> 
> maybe perl 5.10 issue?
> 
> -- 
> Vladimir Lettiev aka crux <thec...@gmail.com>

-- 
Home - http://www.piersharding.com
xmpp:pi...@ompka.net

Attachment: pgpjRrInsSIWZ.pgp
Description: PGP signature

Reply via email to