'if a connection to a tracked-session host, alert and write if no subdecoder'

def connectionHandler(self, conn):

    if self.alerts:
        if (conn.serverip in self.sessions):
            self.alert('inbound', **conn.info())
        if (conn.clientip in self.sessions):
            self.alert('outbound', **conn.info())
    if ((conn.serverip in self.sessions) or (conn.clientip in self.sessions)):
        if (not self.subDecoder):
            self.write(conn)
