(self, buf)
return entry_sc
Get irc server commands of tcp streams.
        @buf: list of messages
        @return: dictionary of server messages
Get irc server commands of tcp streams.
Get irc server commands of tcp streams .
def getServerMessages(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

        entry_sc = []

        for msg in self._messages:
            if msg["type"] == "server":
                entry_sc.append(msg)

        return entry_sc
def getServerMessages ( self , buf ) : try : self . _unpack ( buf ) except Exception : return None entry_sc = [ ] for msg in self . _messages : if msg [ "type" ] == "server" : entry_sc . append ( msg ) return entry_sc