From 2212021091f8a7302f412450550cc429f6a15a83 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Sun, 28 Dec 2014 11:45:17 +0000 Subject: [PATCH] Make the IRC welcome "trigger" line a setting --- tipbot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tipbot.py b/tipbot.py index e70dd9a..1b6a3a9 100644 --- a/tipbot.py +++ b/tipbot.py @@ -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())