Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Getting gtalk user status using Net XMPP

by Anonymous Monk
on Feb 26, 2012 at 10:34 UTC ( #956245=note: print w/ replies, xml ) Need Help??


in reply to Getting gtalk user status using Net XMPP

can get the list of my entire roster but not the status of a particular buddy.

Maybe that buddy is not in your roster?

what am i doing wrong here ? $user is undef !!

It appears you're not reading the fine manual (Net::XMPP::Roster), online returns undef when a user is not online

Try Dumper-ing the results of query  my %hash = $Roster->query('bob@jabber.org');


Comment on Re: Getting gtalk user status using Net XMPP
Download Code
Re^2: Getting gtalk user status using Net XMPP
by hello_world (Acolyte) on Feb 26, 2012 at 10:47 UTC
    The buddy is in roster and is online as well,and when i print $user i get 'use of uninitialized value'. I tried dumping the results of %hash and its empty.

      I see two things to try, install DAPATRICK/Net-XMPP-1.02_04.tar.gz (  cpanp i DAPATRICK/Net-XMPP-1.02_04.tar.gz ) and test again. If problem persists, report bug upstream :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://956245]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (17)
As of 2014-07-10 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (215 votes), past polls