matchesChannel method
Check if this channel matches another channel
Implementation
bool matchesChannel(Channel other) {
if (isPattern) {
return Grammar.channelMatches(other.name, name);
} else if (other.isPattern) {
return Grammar.channelMatches(name, other.name);
} else {
return name == other.name;
}
}