update: add 'setIRCNick()' function to WTVClientSessionData for ease of use

update: add primative getMaxUsernameLength() to overcome username limitation in older builds
update: wtv-chat:/home template
This commit is contained in:
zefie
2021-07-26 07:07:05 -04:00
parent 7826891070
commit 012c0114e1
7 changed files with 185 additions and 152 deletions

View File

@@ -32,6 +32,9 @@ function go() {
<li><a href="wtv-flashrom:/willie" selected>Ultra Willies</a> ~ <a href="wtv-tricks:/info">Tricks Info</a></li>
<li><a href="wtv-music:/demo/index">MIDI Music Demo</a></li>
`;
if (ssid_sessions[socket.ssid].hasCap("client-can-do-chat")) {
data += "<li><a href=\"wtv-chat:/home\">IRC Chat Test</a></li>\n"
}
if (ssid_sessions[socket.ssid].hasCap("client-has-disk")) {
// only show disk stuff if client has disk
data += "<li><a href=\"client:diskhax\">DiskHax</a> ~ <a href=\"client:vfathax\">VFatHax</a></li>\n";