Remove App.isChannel
Replace all remaining usage with Client.isChannel. Client will be able to use the ISUPPORT tokens to check if a name is a channel.
This commit is contained in:
@@ -11,7 +11,7 @@ function getActiveClient(app) {
|
||||
|
||||
function getActiveChannel(app) {
|
||||
var activeBuffer = app.state.buffers.get(app.state.activeBuffer);
|
||||
if (!activeBuffer || !app.isChannel(activeBuffer.name)) {
|
||||
if (!activeBuffer || activeBuffer.type !== BufferType.CHANNEL) {
|
||||
throw new Error("Not in a channel");
|
||||
}
|
||||
return activeBuffer.name;
|
||||
|
||||
Reference in New Issue
Block a user