todo list

This commit is contained in:
zefie
2025-06-12 16:01:46 -04:00
parent 7fc9046397
commit 4270d7f3a7

View File

@@ -1,6 +1,13 @@
const net = require('net'); const net = require('net');
class WTVIRC { class WTVIRC {
/*
* WTVIRC - A simple IRC server implementation for WebTV
* Tested with WebTV and KvIRC
* This is a basic implementation and does not cover all IRC features.
* It supports basic commands like NICK, USER, JOIN, PART, PRIVMSG, NOTICE, TOPIC, AWAY, and PING.
* TODO: KICK, BAN, MODE, WHOIS.
*/
constructor(minisrv_config, host = 'localhost', port = 6667, debug = false) { constructor(minisrv_config, host = 'localhost', port = 6667, debug = false) {
this.minisrv_config = minisrv_config; this.minisrv_config = minisrv_config;
this.version = this.version =
@@ -37,7 +44,7 @@ class WTVIRC {
}; };
} }
socket.write(':${this.servername} NOTICE AUTH :Welcome to minisrv IRC Server\r\n'); socket.write(`:${this.servername} NOTICE AUTH :Welcome to minisrv IRC Server\r\n`);
socket.on('data', data => { socket.on('data', data => {
const lines = data.split(/\r\n|\n/).filter(Boolean); const lines = data.split(/\r\n|\n/).filter(Boolean);