Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor changes. #411

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Minor changes. #411

wants to merge 6 commits into from

Conversation

swatbelal
Copy link

Fixed the SFTP plugin which didn't update the log.
Removed the remote-log mode password from the B3.log

Waindor and others added 6 commits February 21, 2019 01:54
Adding backticks on each side of %s on line 192 made it compatible with MySQL 8.0.15. Haven't tested earlier versions, but it should work.

This error prevented b3 from launching: "ERROR 'Query failed [SELECT * FROM groups WHERE `keyword` = "superadmin" LIMIT 1] None: (1064, u\'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \\\'groups WHERE `keyword` = "superadmin" LIMIT 1\\\' at line 1\')'".
The B3 only downloaded the log upon connection, and afterwards it doesn't update the log.
This fixes it.
Removed login information that was printed in the b3.log file, it included password.
MySQL 8.0.15 Compatibility Update
Copy link
Member

@danielepantaleone danielepantaleone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide the correct changelog and version number for this additional parser?

@@ -326,7 +326,7 @@ def __init__(self, conf, options):
game_log = self.config.get('server', 'game_log')
if game_log[0:6] == 'ftp://' or game_log[0:7] == 'sftp://' or game_log[0:7] == 'http://':
self.remoteLog = True
self.bot('Working in remote-log mode: %s', game_log)
self.bot('Working in remote-log mode')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of this change? Why hiding the gamelog path from the B3 log?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it shows the SFTP/FTP password within the log path.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough 👍

Copy link
Member

@danielepantaleone danielepantaleone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an error as it will try to establish remote SSH connection also if it's already established.

@swatbelal
Copy link
Author

And I didn't make this parser, someone else did.
It's for cod4x 1.8 compatibility.

@swatbelal
Copy link
Author

Do you've a better idea of "fixing it" so it doesn't establish duplicate connections?

@danielepantaleone
Copy link
Member

Do you've a better idea of "fixing it" so it doesn't establish duplicate connections?

Surely there is but I have no time to investigate this and I do not have the correct setup anymore to perform the necessary tests.

And I didn't make this parser, someone else did.
It's for cod4x 1.8 compatibility.

Ok, I get it, still it will need some cleanup before merging (and possibly testing as I do not have Cod4x)

@swatbelal
Copy link
Author

I'd not say that this "fix" works completely because bot crashes once you give it an order to give a penality so I've to find another way around to fix it.
But the parser works without flaws, tested thousand times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants