raisedragon / pircbotx

Automatically exported from code.google.com/p/pircbotx
0 stars 0 forks source link

Bot fails to recognize channel Owner until owner rejoins. #201

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have bot join channel owner is already in. (perhaps applies to other user 
modes as well)
2. event.getChannel().isOwner(event.getUser())

What is the expected output? What do you see instead?
True if you are the owner. I get false.

What version of the product are you using? On what operating system?
Latest snapshot. pircbotx-2.1-20140816.233855-50.jar

Please provide any additional information below.
http://pastebin.com/vPSrte3i
Only the first method returns false.
The problem is apparently in event.getChannel().isOwner() as 
u.getChannelsOwnerIn() correctly returns the channels.

To have the bot notice you, you have to rejoin the channel. It seems there's 
something wrong with the initial join channel WhoIs?

Original issue reported on code.google.com by Tnade...@gmail.com on 20 Aug 2014 at 6:19

GoogleCodeExporter commented 9 years ago
Perhaps this has something to do with it:
[main] ERROR org.pircbotx.PircBotX - Exception encountered when parsing line
java.lang.NullPointerException
    at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)
    at com.google.common.collect.ImmutableMultimap$Builder.put(ImmutableMultimap.java:172)
    at org.pircbotx.UserChannelMap.createSnapshot(UserChannelMap.java:106)
    at org.pircbotx.UserChannelDao.createSnapshot(UserChannelDao.java:295)
    at org.pircbotx.InputParser.processCommand(InputParser.java:544)
    at org.pircbotx.InputParser.handleLine(InputParser.java:353)
    at org.pircbotx.PircBotX.startLineProcessing(PircBotX.java:283)
    at org.pircbotx.PircBotX.connect(PircBotX.java:244)
    at org.pircbotx.PircBotX.startBot(PircBotX.java:151)

Open a new issue if that's not the case.

Original comment by Tnade...@gmail.com on 20 Aug 2014 at 7:01

GoogleCodeExporter commented 9 years ago
Above error happens when someone leaves a channel.

Original comment by Tnade...@gmail.com on 20 Aug 2014 at 7:14

GoogleCodeExporter commented 9 years ago
http://pastebin.com/0xJKDigV

http://pastebin.com/sGFMdZ1y

Original comment by Tnade...@gmail.com on 31 Aug 2014 at 10:34

GoogleCodeExporter commented 9 years ago
Above error also happens on Esper. This is preventing me doing anything onPart 
or onQuit. Please look into this.

Original comment by Tnade...@gmail.com on 14 Sep 2014 at 4:53

GoogleCodeExporter commented 9 years ago
Fixed in latest build

Original comment by Lord.Qua...@gmail.com on 31 Oct 2014 at 2:07