adds a channel, but must have authenication

def add_channel(self, channel, pwd_hash):
        """
        adds a channel, but must have authenication
        """
        if channel.pwd_hash == pwd_hash:
            self.channels.append(channel)
            lg.record_process('comms.py', 'Added channel ' + channel.name)

            return True
        else:
            lg.record_process('comms.py', 'ERROR - Cant add channel : wrong hash for ' + channel.name)
            return False