Re: advice...
From: cfernandez <cfernandez@xxxxxxxxxxxxxxx>
Date: Wed, 27 Dec 2006 23:10:10 +0100

Hi Jakob, thanks for the response.. and the tip.
so if I check stanza::body() against a string for example "news"
and have another class do something with it like download rss feeds... stanza::body() will be the right thing to use..?

Thanks so much.


Jakob Schroeter wrote:
On Wednesday December 27 2006 05:17, Chris Fernandez wrote:
Hi guys, I am going to add more feature to the bot I wrote yesterday
following mix examples from gloox.
I was using MessageHandler but I think (not sure) that for what I read I
will be better off to use MessageSession?
basically I need some class that will put the msg on a variable so I can
compare to do something about it..
for example if I sent "slashdot" it will fech the rss feed and sent it
back to me... etc..

what is my best choice? also what variable handles the msg text on that
class?

I don't think you'd need a MessageSession for that.

Stanza::body() returns the actual message text.

cheers,
Jakob



--
gloox-dev mailing list
to unsubscribe:
send a message with subject 'unsubscribe gloox-dev' to minimalist@xxxxxxxxxx