Implement /buffer
This commit is contained in:
parent
7a1d9c48cc
commit
5f30662fc0
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue