Skip to content

Commit

Permalink
removed extra output
Browse files Browse the repository at this point in the history
  • Loading branch information
Houndie committed Feb 11, 2012
1 parent c3f4d6b commit 36a5b3b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions swingbot.js
Expand Up @@ -103,15 +103,11 @@ bot.on('speak', function (data) {
var idx = 0;
for(; idx < roomInfo.users.length &&
roomInfo.users[idx].name.toLowerCase() != text.substring(12).replace(/\s/g, "").toLowerCase(); idx++);
console.log(text.substring(12).replace(/\s/g, "").toLowerCase());
console.log(JSON.stringify(roomInfo.users));
console.log(idx);
if(idx < roomInfo.users.length){
var Query1 = "INSERT OR IGNORE INTO users (id, banned) VALUES ('" +
roomInfo.users[idx].userid + "', 1);";
var Query2 = "UPDATE users SET banned = 1 WHERE id = '" +
roomInfo.users[idx].userid + "';";
console.log(" " + Query1 + Query2);
db.exec(Query1 + Query2);
bot.bootUser(roomInfo.users[idx].userid, "");
}
Expand Down

0 comments on commit 36a5b3b

Please sign in to comment.