mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-15 00:47:46 +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];
|
var newNick = args[0];
|
||||||
this.client.send({ command: "NICK", params: [newNick] });
|
this.client.send({ command: "NICK", params: [newNick] });
|
||||||
break;
|
break;
|
||||||
|
case "buffer":
|
||||||
|
var name = args[0];
|
||||||
|
if (!this.state.buffers.has(name)) {
|
||||||
|
console.error("Unknown buffer");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.switchBuffer(name);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
console.error("Unknwon command '" + cmd + "'");
|
console.error("Unknwon command '" + cmd + "'");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user