[PyXMPP] Using pyxmpp with muc

Martin Owens doctormo at gmail.com
Thu Mar 27 15:54:04 CET 2008


>  Have you called .set_handlers() method of the MucRoomHandler object?
>  This is not done automatically. The method should may be called from the
>  session_started method of the client class.
>
>  I know, that is messy. I have started developing a better mechanism, but
>  never finished it.

Hey Jack, thank you for you response, it worked great. I hope you get
to finish your rewrite I know how difficult it can be.

I recommend using a plain object based approach so instead of having a
roomstate and roommanager and roomhander objects you instead hide that
complexity behind a room object which you pass the client object, you
can pick off the stream from the client, tell if it's connected to
that room or not and keep track of users and also route all messages
to each room so if you over-class each room then the events would go
to that specific room class.

make sense?

Best Regards, Martin Owens


More information about the PyXMPP mailing list