Use ISUPPORT CHANTYPES in Client.isChannel
This commit is contained in:
parent
db7aa337cb
commit
651e255ddb
2 changed files with 3 additions and 3 deletions
|
@ -467,8 +467,8 @@ export default class Client extends EventTarget {
|
|||
}
|
||||
|
||||
isChannel(name) {
|
||||
// TODO: use the ISUPPORT token if available
|
||||
return irc.STD_CHANNEL_TYPES.indexOf(name[0]) >= 0;
|
||||
var chanTypes = this.isupport.get("CHANTYPES") || irc.STD_CHANTYPES;
|
||||
return chanTypes.indexOf(name[0]) >= 0;
|
||||
}
|
||||
|
||||
setPingInterval(sec) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue