Don't try to identify with no password

This commit is contained in:
Juhani Krekelä 2019-05-06 15:10:54 +03:00
parent 8c09399ef7
commit 23d681833c
1 changed files with 3 additions and 2 deletions

View File

@ -286,8 +286,9 @@ def initialize(*, config):
def on_connect(*, irc):
global nickserv_pass
irc.msg(b'nickserv', b'IDENTIFY ' + nickserv_pass.encode())
time.sleep(30) # One day I will do this correctly. Today is not the day
if nickserv_pass != '':
irc.msg(b'nickserv', b'IDENTIFY ' + nickserv_pass.encode())
time.sleep(30) # One day I will do this correctly. Today is not the day
stop_gameloop()
start_gameloop(irc)