"alias-%s" -> "command-alias-%s"

This commit is contained in:
jesopo 2019-11-20 12:41:31 +00:00
parent 714d40b79f
commit 6c9a04a3ef
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ for server_id, value in results:
print("[%s] Migrating '%s' ('%s')" %
(servers[server_id], alias, command))
cursor.execute("INSERT INTO server_settings VALUES (?, ?, ?)",
[server_id, "alias-%s" % alias, json.dumps(command)])
[server_id, "command-alias-%s" % alias, json.dumps(command)])
database.commit()
database.close()

View file

@ -3,7 +3,7 @@ import re
from src import EventManager, ModuleManager, utils
REGEX_ARG_NUMBER = re.compile(r"\$(?:(\d+)(-?)|(-))")
SETTING_PREFIX = "alias-"
SETTING_PREFIX = "command-alias-"
class Module(ModuleManager.BaseModule):
def _arg_replace(self, s, args_split):