Fix redminebot

This commit is contained in:
Benjamin Drieu 2018-09-30 16:03:33 +02:00 committed by root
parent 24b4f8ac26
commit 529e410f1e

View File

@ -76,7 +76,8 @@ class Bot(object):
with open("password.txt", 'r') as f:
password = f.read()
if registered == True:
self.ircsock.send("PRIVMSG {} {} {} {}".format("NickServ","IDENTIFY", self.botnick, password))
print("PRIVMSG {} {} {}".format("NickServ","IDENTIFY",password))
self.ircsock.send("PRIVMSG {} :{} {} {}".format("NickServ","IDENTIFY", self.botnick, password))
def add_project(self, project):
project.set_ircsock ( self.ircsock )