code: def _StripThenGetNicknameAndText(self, text):
      
      stripped = self.STRIPPER.transformString(text)
      structure = self.MSG_ENTRY.parseString(stripped)
      text = structure.text.replace('\t', ' ')
      return structure.nickname, text
docs: Strips decorators from text and gets <nickname> if available.
  
      This method implements the XChat strip_color2 and fe_print_text
      functions, slightly modified to get pure text. From the parsing point
      of view, after having stripped, the code takes everything as is,
      simply replacing tabs with spaces (as the original XChat code).
      So the VerifyStructure plays an important role in checking if
      the source file has the right format, since the method will not raise
      any parse exception and every content will be good.
  
      Args:
        text (str): text obtained from the log record.
  
      Returns:
        tuple: containing:
  
          nickname (str): nickname.
          text (str): text sent by nickname or service messages.