parameters: (self, buf)
return_statement: return entry_sc
docstring: Get irc server commands of tcp streams.
          @buf: list of messages
          @return: dictionary of server messages
docstring_summary: Get irc server commands of tcp streams.
docstring_tokens: Get irc server commands of tcp streams .
function: 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
function_tokens: 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