Compare commits

...

2 Commits

Author SHA1 Message Date
Niels Simenon 058ca10011 1.24.2 2023-04-09 00:20:32 +02:00
Niels Simenon 8f37ee145e Fixed chat prompt regex breaking if no username prefix is configured. 2023-04-09 00:20:29 +02:00
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "schat2-clive",
"version": "1.24.1",
"version": "1.24.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "schat2-clive",
"version": "1.24.1",
"version": "1.24.2",
"license": "ISC",
"dependencies": {
"bhttp": "^1.2.8",

View File

@ -1,6 +1,6 @@
{
"name": "schat2-clive",
"version": "1.24.1",
"version": "1.24.2",
"description": "Game host for SChat 2-powered chat sites",
"main": "src/app.js",
"scripts": {

View File

@ -5,7 +5,7 @@ const bhttp = require('bhttp');
const style = require('../utils/style');
const promptRegex = new RegExp(`^${config.usernamePrefix}?${config.user.username}[:,\\s]`, 'ui');
const promptRegex = new RegExp(`^${config.usernamePrefix ? `${config.usernamePrefix}?` : ''}${config.user.username}[:,\\s]`, 'ui');
const history = new Map();
const settings = config.chat;