Fix redminebot

This commit is contained in:
Benjamin Drieu 2018-09-30 16:03:33 +02:00 committed by root
parent 36375da7c7
commit e70a5ba181

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 )