mirror of
https://git.waldn.net/git/knotteye/satyr.git
synced 2025-12-22 01:32:17 +00:00
Removed old IRC implementation
User accounts are now only for streamers, update CLI, API, and config to reflect that. Fixed a bug with registration in api.ts Made http port configurable Added beginnings of socket.io chat server Possibly more, I took a break in the middle of this commit.
This commit is contained in:
@@ -13,7 +13,10 @@ async function register(name: string, password: string, confirm: string) {
|
||||
if (name === config.restrictedNames[i]) return {"error":"restricted name"};
|
||||
}
|
||||
let r: boolean = await db.addUser(name, password);
|
||||
if(r) return {"success":""};
|
||||
if(r) {
|
||||
let k = await db.query('select stream_key from users where username='+db.raw.escape(name));
|
||||
return k;
|
||||
}
|
||||
return {"error":""};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user