Use ISUPPORT CHANTYPES in Client.isChannel
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user