start irc with minisrv

This commit is contained in:
zefie
2025-06-12 16:15:47 -04:00
parent 4270d7f3a7
commit 3b709ee303
3 changed files with 21 additions and 1 deletions

View File

@@ -343,6 +343,13 @@ class WTVIRC {
this.broadcast(`:${this.servername} NOTICE * :${message}\r\n`);
}
sendWebTVNoticeTo(username, message) {
const socket = Array.from(this.nicknames.keys()).find(s => this.nicknames.get(s) === username);
if (socket) {
socket.write(`:${this.servername} NOTICE * :${message}\r\n`);
}
}
sendToChannelAs(username, channel, message) {
const users = this.getUsersInChannel(channel);
for (const user of users) {