BigBrotherBot / big-brother-bot

Big Brother Bot B3 is a complete and total server administration package for online games. B3 is designed primarily to keep your server free from the derelicts of online gaming, but offers more, much more.
http://www.bigbrotherbot.net
148 stars 143 forks source link

[iourt42] auth login is not correctly retrieved #113

Closed danielepantaleone closed 11 years ago

danielepantaleone commented 11 years ago

Didn't had the time to have a deep look at it but seems that the regular expression is failing in parsing the client auth login somehow. That's what I extracted from the b3.log file:

131103 20:58:32 VERBOS2 "RCON: Received 'auth: id: 1 - name: ^7:) - login: randomlogin - notoriety: basic - level: -1  \\n'"
131103 20:58:32 DEBUG   'Storage: getClient Client42<@0:GUIDGOESHERE|None:":)":1>'
131103 20:58:32 VERBOS2 'Aborted Making Alias for cid: 1, name is the same'
131103 20:58:32 BOT     u'Client found in storage @4, welcome back :) (FSA: )'

GUID and FSA replaced for privacy purpose. As you can see the FSA is shown in the first log line but it's missing in the last one

EDIT: just checked and the regex works as expected. The problem must be somewhere else

thomasleveil commented 11 years ago

I added more info to the B3 log file in b09b7cf. Could you please provide a new log extract for that case ?

Then the next step will be to reproduce the case in one of the _Test_authwith* test case

danielepantaleone commented 11 years ago

Ok, I know where the bug is and it's not b3 side: I checked again the log and I found this line:

131103 23:45:20 VERBOSE "RCON sending (127.0.0.1:27924) 'auth-whois 1'"
131103 23:45:21 VERBOS2 "RCON: Received 'Client in slot 1 is not connected\\n'"

That's why the FSA is not retrieved. The bug is in the Urban Terror server engine and I just fixed it for the next update.