UserSnapshot does not seem to contain channels

9 views
Skip to first unread message

Matt Ford

unread,
Dec 19, 2014, 5:49:38 AM12/19/14
to pirc...@googlegroups.com
Hi all,

Perhaps I am doing something wrong but, I can't seem to get a list of channels a user was in in QuitEvent, I have tried the following:

event.getUser().getChannels();
event.getDaoSnapshot().getChannels(event.getUser());
event.getUser().setDao(event.getDaoSnapshot()).getChannels();

Obviously the first one should work but when I loop through the result there are no items in the set. Has anyone else had this problem with PirxBotX 2.0.1?

Thanks in advance

Leon Blakey

unread,
Dec 19, 2014, 11:10:34 AM12/19/14
to pirc...@googlegroups.com
This is a bug in 2.0.1 where UserChannelDao Snapshots lost most of the relationship information. It's fixed in the latest 2.1 snapshot version if you can upgrade, see http://code.google.com/p/pircbotx/wiki/DevVersion

--
You received this message because you are subscribed to the Google Groups "pircbotx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pircbotx+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matt Ford

unread,
Dec 19, 2014, 3:52:11 PM12/19/14
to pirc...@googlegroups.com
That explains it, at least I'm not going crazy! I'll try it with the 2.1 snapshot, thank you for the response.
Reply all
Reply to author
Forward
0 new messages