Techcable / pircbotx

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

Bot with long login/nick will get problem with inputparser #231

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. We construct a bot with long login/nick
2. The server (mine now is undernet) will accept the connection but return a 
shorter hostmask (passed to inputparser)
3. Input parser will not be able to find the Pircbotx with specified login/nick 
returned by the server.

What is the expected output? What do you see instead?
I think when the server pass back the new login information, the bot should be 
able to pick up the changes and update nick/login information accordingly

What version of the product are you using? On what operating system?
2.0.1 and 2.1

Please provide any additional information below.
Nick: testwithalongnick
Login:testwithalonglogin

2 error locations for your references:

===ONE===
System.err﹕ 12741 [botPool-bot1] ERROR org.pircbotx.PircBotX - Exception 
encountered when parsing line :testwithalon!~testwitha@xx.xx.xx.xx MODE 
testwithalon :+i
02-05 15:30:50.014  12685-12799/com.myirc W/System.err﹕ 
org.pircbotx.exception.DaoException: UnknownUser: testwithalon
02-05 15:30:50.015  12685-12799/com.myirc W/System.err﹕ at 
org.pircbotx.UserChannelDao.getUser(UserChannelDao.java:99)

===TWO===
02-05 15:30:50.211  12685-12799/com.myirc W/System.err﹕ 12937 [botPool-bot1] 
ERROR org.pircbotx.PircBotX - Exception encountered when parsing line 
:testwithalon!~testwitha@xx.xx.xx.xx JOIN #myircchannel
02-05 15:30:50.211  12685-12799/com.myirc W/System.err﹕ 
java.lang.NullPointerException: channel
02-05 15:30:50.211  12685-12799/com.myirc W/System.err﹕ at 
org.pircbotx.UserChannelDao.addUserToChannel(UserChannelDao.java:193)

Original issue reported on code.google.com by function...@gmail.com on 5 Feb 2015 at 9:02

GoogleCodeExporter commented 9 years ago
Thanks for the report, fixed in Revision ce4c91565b79 

Original comment by Lord.Qua...@gmail.com on 10 Feb 2015 at 5:28