Skip to content
This repository was archived by the owner on Nov 24, 2020. It is now read-only.

Commit 5dec084

Browse files
committed
modules/bpcontroller: Use more reasonable varchar lengths for tables
1 parent 26ab83f commit 5dec084

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/bpcontroller.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ def load():
77
"""Restricts spamming annoyed SOPs"""
88
dbExecute('''create table if not exists controlled_users (
99
user_id int auto_increment primary key,
10-
nick varchar(255),
11-
regex varchar(255),
10+
nick varchar(64),
11+
regex varchar(500),
1212
INDEX (nick)
1313
)''')
1414
dbExecute('''create table if not exists controlled_alts (
1515
alt_id int auto_increment primary key,
16-
alt varchar(255) UNIQUE,
17-
orig varchar(255),
16+
alt varchar(64) UNIQUE,
17+
orig varchar(64),
1818
INDEX (orig)
1919
)''')
2020
registerFunction("control %s %S", control_add, "control <nick> <regex>", restricted=True)

0 commit comments

Comments
 (0)