code: async def on_raw_kill(self, message):
          
          by, bymeta = self._parse_user(message.source)
          target, targetmeta = self._parse_user(message.params[0])
          reason = message.params[1]
  
          self._sync_user(target, targetmeta)
          if by in self.users:
              self._sync_user(by, bymeta)
  
          await self.on_kill(target, by, reason)
          if self.is_same_nick(self.nickname, target):
              await self.disconnect(expected=False)
          else:
              self._destroy_user(target)
docs: KILL command.