-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
|
||
// 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; | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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?
Sorry this took a while to get back to. Thanks for contributing! |
No description provided.