def METHOD_NAME(self, buf):
    """Get irc server commands of tcp streams.
    @buf: list of messages
    @return: dictionary of server messages
    """
    try:
        self._unpack(buf)
    except Exception:
        return None
    return [msg for msg in self._messages if msg["type"] == "server"]