Closed GoogleCodeExporter closed 9 years ago
Strange, I've tested both the current dev version and 1.7 and both of them give
me a user list. Note that the user list is built with a WHO reply as it has the
most detailed information, do you see on in the logs? Also, do you happen to be
using a custom Listener Manager?
If not, can you attach the logs that shows your problem and some example code?
Original comment by Lord.Qua...@gmail.com
on 30 Oct 2012 at 12:32
Thanks for looking into this. I have attached the server interactions from both
1.6 and 1.7 releases of PircBotX.
I am not using a custom ListenerManager (I believe that the default is now
ThreadedListenerManager?).
It appears that the WHO line is not being sent to the server in the 1.7
version, as such, the server never responds with the users in the channel
(other than the NAMES response on join).
Original comment by w.gray.m...@gmail.com
on 30 Oct 2012 at 10:07
Attachments:
Forgot to say that the project is on GitHub if you need to take a look at the
source.
https://github.com/SL5R0/QBot/
The main implementation is at:
https://github.com/SL5R0/QBot/blob/master/src/main/java/org/sl5r0/qbot/QBot.java
Original comment by w.gray.m...@gmail.com
on 30 Oct 2012 at 10:09
Sorry for the delay, I've been very busy lately
Since its been so long and I've got some free time I download your project and
started playing around with it. And it seems to be working for me (see
attached) on both your server and freenode. So I'm not sure what is going on,
but I would review your own code and make sure your calling it right
If your interested in any advice I noticed some things when I was poking around
- In QBotConfiguration I doubt you wanted to use com.sun.istack.internal.Nullable, you were probably looking for javax.annotation.Nullable. This is provided by projects like http://code.google.com/p/jsr-305/ and IIRC the J2EE distribution of Java (which is generally what people use if they want @Nullable).
- It seems when you create a listener your passing a bot instance. This is generally not how your supposed to get the bot in a Listener, your usually supposed to use event.getBot() (and use generics if you want your bot class without casting). This is explained in http://code.google.com/p/pircbotx/wiki/EventSystemExplained#Custom_Bots_%28NEW!!%29
- Not sure if you just haven't finished the plugin handling yet, but I noticed that it wouldn't add my Listener unless I specified it both in PluginManager.loadCorePlugins() and the config.xml file.
Other than that looks like a promising project!
Original comment by Lord.Qua...@gmail.com
on 30 Nov 2012 at 3:49
Attachments:
Original issue reported on code.google.com by
w.gray.m...@gmail.com
on 29 Oct 2012 at 9:13