def parsefreq(s, chanlist):
	retfreq = None
	[address, groupflag, command] = s.split(",")
	command = int(command)
	address = int(address) & 0xFFF0
	groupflag = bool(groupflag)

	if chanlist is None:
		if command < 0x2d0:
			retfreq = getfreq(chanlist, command)

	else:
		if chanlist.get(str(command), None) is not None: #if it falls into the channel somewhere
			retfreq = getfreq(chanlist, command)
	return [retfreq, address] # mask so the squelch opens up on the entire group