Make the IRC welcome "trigger" line a setting
This commit is contained in:
parent
670b9c49f8
commit
2212021091
|
@ -41,6 +41,7 @@ irc_port = 6667
|
|||
irc_homechan = '#txtptest000'
|
||||
irc_timeout_seconds = 600
|
||||
irc_send_delay = 0.4
|
||||
irc_welcome_line = 'Welcome to the freenode Internet Relay Chat Network'
|
||||
|
||||
redis_host="127.0.0.1"
|
||||
redis_port=7777
|
||||
|
@ -973,7 +974,7 @@ while True:
|
|||
# consider any IRC data as a ping
|
||||
last_ping_time = time.time()
|
||||
|
||||
if data.find ( 'Welcome to the freenode Internet Relay Chat Network' ) != -1:
|
||||
if data.find ( irc_welcome_line ) != -1:
|
||||
userstable = dict()
|
||||
registered_users.clear()
|
||||
SendTo("nickserv", "IDENTIFY %s" % GetPassword())
|
||||
|
|
Loading…
Reference in New Issue