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

Update config + support dimension names w/ capital letters #84

Merged
merged 4 commits into from
Oct 25, 2021

Conversation

Moneylover3246
Copy link
Contributor

No description provided.

app/node_modules/dimensions/clientcommandhandler.ts Outdated Show resolved Hide resolved
Comment on lines +7 to +11

// Assign each flag to an index
this[0] = (value & 1) == 1;
this[1] = (value & 2) == 2;
this[2] = (value & 4) == 4;
this[3] = (value & 8) == 8;
this[4] = (value & 16) == 16;
this[5] = (value & 32) == 32;
this[6] = (value & 64) == 64;
this[7] = (value & 128) == 128;
for (let i = 0; i < 8; i++) {
this[i] = ((value >> i) & 1) == 1;
}
Copy link
Owner

Choose a reason for hiding this comment

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

What does this have to do with the other changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nothing, just figured it'd be a good replacement.

@@ -40,11 +40,11 @@ export class ClientCommandHandler {
public handle(command: Command, client: Client): boolean {
let handled: boolean = false;
if (client.servers[command.name]) {
if (client.server.name == command.name && client.connected) {
if (client.server.name.toLowerCase() == command.name.toLowerCase() && client.connected) {
Copy link
Owner

Choose a reason for hiding this comment

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

You lower case here but the one line above, and lower down, you don't?

@popstarfreas
Copy link
Owner

Sorry this took a while to get back to. Thanks for contributing!

@popstarfreas popstarfreas merged commit eb16e6d into popstarfreas:dev Oct 25, 2021
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.

2 participants