Browse Source

bugfix {} issue

isundil 6 years ago
parent
commit
d28aea6d64
1 changed files with 2 additions and 1 deletions
  1. 2 1
      index.js

+ 2 - 1
index.js

@@ -35,7 +35,7 @@ function KnackiBot() {
         realName: this.name,
         stripColors: true
     });
-    if (USE_NS)
+    if (USE_NS) {
         var _this = this,
             registerHandler = 0;
 
@@ -65,6 +65,7 @@ function KnackiBot() {
             registerHandler = setInterval(tryRegister, 30000);
             tryRegister();
         });
+    }
     this.bot.addListener("error", console.error);
     this.bot.addListener("join", (chan, nick) => {
         chan = chan.toLowerCase();