Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
Fix detecting numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
TATDK committed Jul 20, 2014
1 parent c6df269 commit 0319ad7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/client.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function intChat(msg, timeout) {
}
]
}));
if (timeout !== undefined && !isNaN(~~timeout) && ~~timeout > 0) {
if (timeout !== undefined && !isNaN(timeout) && ~~timeout > 0) {
setTimeout(function() {
_this.moderateDeleteChat(cID);
}, ~~timeout * 1E3);
Expand Down Expand Up @@ -527,7 +527,7 @@ function receivedChatMessage(m) {
obj.args = obj.args.split(' ');
for (i in obj.args) {
if (!obj.args.hasOwnProperty(i)) continue;
if (!isNaN(~~obj.args[i]))
if (!isNaN(obj.args[i]))
obj.args[i] = ~~obj.args[i];
}
for (i in obj.mentions) {
Expand Down

0 comments on commit 0319ad7

Please sign in to comment.