zD12 / pircbotx

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

Exception Encountered Parsing Mode Q #210

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
[2014/11/04 11:37:59] [botPool0-bot0] [ERROR] org.pircbotx.PircBotX - Exception 
encountered when parsing line
org.pircbotx.exception.DaoException: UnknownUser: 
*!*@botters/jztech101/bot/wavefamily
    at org.pircbotx.UserChannelDao.getUser(UserChannelDao.java:90)
    at org.pircbotx.InputParser$OpChannelModeHandler.handleMode(InputParser.java:894)
    at org.pircbotx.InputParser.processMode(InputParser.java:834)
    at org.pircbotx.InputParser.processCommand(InputParser.java:574)
    at org.pircbotx.InputParser.handleLine(InputParser.java:353)
    at org.pircbotx.PircBotX.startLineProcessing(PircBotX.java:292)
    at org.pircbotx.PircBotX.connect(PircBotX.java:253)
    at org.pircbotx.PircBotX.startBot(PircBotX.java:154)
    at org.pircbotx.MultiBotManager.executeBot(MultiBotManager.java:225)
    at org.pircbotx.MultiBotManager$BotRunner.call(MultiBotManager.java:235)
    at org.pircbotx.MultiBotManager$BotRunner.call(MultiBotManager.java:228)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

upon 
[2014/11/04 11:37:59] [botPool0-bot0] [INFO] org.pircbotx.InputParser - 
:WaveTactDev!~WaveTact@c-73-160-123-105.hsd1.nj.comcast.net MODE #techcavern -q 
*!*@botters/jztech101/bot/wavefamily

A suggestion of a fix is to check ServerInfo - Prefix and see if q is in that 
prefix, if it is, it is a usermode owner, if not, it is likely a channel mode - 
be it quiet like this one or something else.

Original issue reported on code.google.com by jzhou2...@gmail.com on 4 Nov 2014 at 4:42

GoogleCodeExporter commented 9 years ago
I didn't think that was valid, but I guess it just depends on the server. Fixed 
in Revision 7f4cc1ddaeb7

Original comment by Lord.Qua...@gmail.com on 4 Nov 2014 at 10:47