code: def log_message(self, user, message):
          if isinstance(user, SeshetUser):
              user = user.nick
          elif not isinstance(user, IRCstr):
              user = IRCstr(user)
          time = datetime.utcnow()
          self.message_log.append((time, user, message))
          while len(self.message_log) > self._log_size:
              del self.message_log[0]