Always initialize opt-in ping list
If OPT_IN_PING is enabled via botconfig.py, OPT_IN_PING isn't set to True at the time we set up tables as necessary, so people using !in will make the bot run into the lack of table and crash. We already do this with the away list even if we're going to use opt-in ping, so this shouldn't cause any issues.
This commit is contained in:
parent
45e59ea647
commit
7ad48ee412
@ -718,12 +718,11 @@ with conn:
|
||||
'wolfwins SMALLINT, monsterwins SMALLINT, foolwins SMALLINT, totalgames SMALLINT, UNIQUE(gamemode, size))'))
|
||||
|
||||
|
||||
if OPT_IN_PING:
|
||||
c.execute('CREATE TABLE IF NOT EXISTS ping (cloak text)')
|
||||
c.execute('CREATE TABLE IF NOT EXISTS ping (cloak text)')
|
||||
|
||||
c.execute('SELECT * FROM ping')
|
||||
for row in c:
|
||||
PING_IN.append(row[0])
|
||||
c.execute('SELECT * FROM ping')
|
||||
for row in c:
|
||||
PING_IN.append(row[0])
|
||||
|
||||
|
||||
def remove_away(clk):
|
||||
|
Loading…
Reference in New Issue
Block a user