mirror of
https://codeberg.org/emersion/gamja.git
synced 2025-02-17 19:40:15 -05:00
Handle self NICK messages
This commit is contained in:
parent
f66c7c52f3
commit
8b35d40702
2 changed files with 8 additions and 1 deletions
|
@ -225,6 +225,13 @@ function connect() {
|
|||
var channel = msg.params[0];
|
||||
createBuffer(channel).addMessage(msg);
|
||||
break;
|
||||
case "NICK":
|
||||
var newNick = msg.params[0];
|
||||
if (msg.prefix.name == server.nick) {
|
||||
server.nick = newNick;
|
||||
}
|
||||
// TODO: append message to all buffers the user is a member of
|
||||
break;
|
||||
default:
|
||||
serverBuffer.addMessage(msg);
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<form>
|
||||
<h2>Connect to IRC</h2>
|
||||
|
||||
<label for="connect-url">URL:</label><br/>
|
||||
<label for="connect-url">Server URL:</label><br/>
|
||||
<input type="url" name="url" id="connect-url" value="ws://localhost:8080"/>
|
||||
<br/><br/>
|
||||
|
||||
|
|
Loading…
Reference in a new issue