From 70a489ad7160bee1e165ad93ff8bda3bbcfa5c22 Mon Sep 17 00:00:00 2001 From: Shauna Date: Sat, 18 Oct 2014 00:59:20 -0400 Subject: [PATCH] Add more hack to deal with list of string format} --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index d4eb443..cccf15b 100644 --- a/bot.py +++ b/bot.py @@ -28,7 +28,7 @@ class Bot(object): csv_file_data = csv.reader(csv_file, delimiter=',', quotechar='|') for row in csv_file_data: row = clean_nick(row[0]) # Sends nicks to remove unnecessary decorators. Hacked to deal with list-of-string format. :( - self.known_nicks.append(row) + self.known_nicks.append([row]) self.newcomers = [] self.hello_regex = re.compile(get_regex(hello_list), re.I) # Regexed version of hello list self.help_regex = re.compile(get_regex(help_list), re.I) # Regexed version of help list