mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
Implement /buffer
This commit is contained in:
parent
7a1d9c48cc
commit
5f30662fc0
@ -397,6 +397,14 @@ export default class App extends Component {
|
||||
var newNick = args[0];
|
||||
this.client.send({ command: "NICK", params: [newNick] });
|
||||
break;
|
||||
case "buffer":
|
||||
var name = args[0];
|
||||
if (!this.state.buffers.has(name)) {
|
||||
console.error("Unknown buffer");
|
||||
return;
|
||||
}
|
||||
this.switchBuffer(name);
|
||||
break;
|
||||
default:
|
||||
console.error("Unknwon command '" + cmd + "'");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user