Browse Source

bin/darkirc: bots don't need history

Dastan-glitch 3 năm trước cách đây
mục cha
commit
98aa63cb9f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      bin/darkirc/script/bots/irc.py

+ 1 - 0
bin/darkirc/script/bots/irc.py

@@ -18,6 +18,7 @@ class IRC:
 
         # Perform user authentication
         self.irc.send(bytes("CAP LS 302\n", "UTF-8"))
+        self.irc.send(bytes("CAP REQ :no-history\n", "UTF-8"))
         self.irc.send(bytes("NICK " + botnick + "\n", "UTF-8"))
         self.irc.send(bytes("USER " + botnick + " 0 * :" + botnick + "\n", "UTF-8"))